Skip to content

Commit

Permalink
add_statmap output segments of any type of coincidence (#3382)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth S Davies authored Jul 17, 2020
1 parent 272a581 commit 2f72efa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/hdfcoinc/pycbc_multiifo_add_statmap
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ else:
foreground_segs = indiv_segs.values()[0]
f.attrs['foreground_time'] = abs(foreground_segs)

# Output the segments which are in *any* type of coincidence
f['segments/coinc/start'], f['segments/coinc/end'] = \
pycbc.events.veto.segments_to_start_end(foreground_segs)

# obtain list of all ifos involved in the coinc_statmap files
all_ifos = np.unique([ifo for fi in files
for ifo in get_ifo_string(fi).split(' ')])
Expand Down

0 comments on commit 2f72efa

Please sign in to comment.