Skip to content
Snippets Groups Projects
Commit cfe598f1 authored by Soichiro Kuwahara's avatar Soichiro Kuwahara
Browse files

gstlal_cherenkov_burst: put buf_seg argument in different location

parent 417975bd
No related branches found
No related tags found
No related merge requests found
......@@ -198,12 +198,12 @@ class PipelineHandler(simplehandler.Handler):
# extract segment. move the segment's upper
# boundary to include all triggers.
buf_timestamp = lal.LIGOTimeGPS(0, buf.pts)
buf_seg = segments.segment(buf_timestamp, max(buf_timestamp + lal.LIGOTimeGPS(0, buf.duration), max(event.peak for event in events) if events else 0.0))
if buf.mini_object.flags & Gst.BufferFlags.GAP:
# sanity check that gap buffers are empty
assert not events
else:
# update trigger rate and livetime
buf_seg = segments.segment(buf_timestamp, max(buf_timestamp + lal.LIGOTimeGPS(0, buf.duration), max(event.peak for event in events) if events else 0.0))
self.rankingstat.denominator.triggerrates[instrument].add_ratebin(tuple(map(float, buf_seg)), len(events))
# push the single detector trigger into the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment