Skip to content
Snippets Groups Projects
Commit d6ed1397 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

inspiral.py: aesthetics

parent 57bd351b
No related branches found
No related tags found
No related merge requests found
......@@ -657,9 +657,8 @@ class Data(object):
buf_timestamp = LIGOTimeGPS(0, buf.pts)
buf_seg = segments.segment(buf_timestamp, max((buf_timestamp + LIGOTimeGPS(0, buf.duration),) + tuple(event.end + 0.000000001 for event in events)))
buf_is_gap = bool(buf.mini_object.flags & Gst.BufferFlags.GAP)
if buf_is_gap:
# sanity check that gap buffers are empty
assert not events
# sanity check that gap buffers are empty
assert not (buf_is_gap and events)
# safety check end times. OK for end times to be
# past end of buffer, but we cannot allow triggr
......
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