Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Commit

Permalink
Merge pull request #7 from stevereyes01/ligolw_combine_segFix
Browse files Browse the repository at this point in the history
Coalesce() fixes
  • Loading branch information
lppekows committed Jan 29, 2016
2 parents d55d876 + c14edad commit 5a66b4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/ligolw_combine_segments
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ if __name__ == '__main__':
contenthandler=ContentHandler)
segs = segments.LigolwSegments(indoc)
for seglist in segs:
seglist.coalesce()
# valid should be the intersection of the valid portion
# in all files
if valid is None:
Expand All @@ -99,6 +100,7 @@ if __name__ == '__main__':

# the union of the valid segments in all files
segment_list += seglist.active
segment_list.coalesce()
ifos.update(seglist.instruments)
segment_list, seglist.active

Expand Down Expand Up @@ -141,6 +143,7 @@ if __name__ == '__main__':
base_row.segment_def_cdb = 0
base_row.process_id = proc_id
base_row.segment_def_id = def_row.segment_def_id
segment_list.coalesce()
for seg in segment_list:
row = copy.copy(base_row)
row.set(seg)
Expand Down

0 comments on commit 5a66b4f

Please sign in to comment.