Commit dc843844 authored by Daichi Tsuna's avatar Daichi Tsuna
Browse files

burca: redefine coinc_time including time shifts

this fixes the bug where burca looks for a coincidence in a file that does not have the triggers. this way the coincident event will not be missed.
parent 21f29bd2
......@@ -132,7 +132,7 @@ if options.coincidence_segments is not None:
# for the purposes of the coinc segs feature, the coinc
# time is minimum of event peak times. this is a fast, and
# guaranteed reproducible definition
return len(events) < min_instruments or min(event.peak for event in events) not in coinc_segs
return len(events) < min_instruments or min(event.peak + offset_vector[event.ifo] for event in events) not in coinc_segs
else:
def coinc_segs_ntuple_comparefunc(events, offset_vector, min_instruments = options.min_instruments):
return len(events) < min_instruments
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment