Skip to content

Commit

Permalink
add_statmap output segments of any type of coincidence (gwastro#3382)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth S Davies authored and OliverEdy committed Apr 3, 2023
1 parent 7db0a1c commit 1112ae5
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 1112ae5

Please sign in to comment.