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

streamthinca: simplify .last_coincs clean-up

parent 62b1e7f8
No related branches found
No related tags found
No related merge requests found
......@@ -157,10 +157,6 @@ class StreamThinca(object):
an exercise for the calling code to ensure it follows the
rules.
"""
# invalidate the coinc extractor in case all that follows
# is a no-op
self.last_coincs = {}
# we need our own copy of the sngl_inspiral table because
# we need a place to store a history of all the triggers,
# and a place we can run coincidence on them. when making
......@@ -226,6 +222,10 @@ class StreamThinca(object):
# have been obtained on this iteration.
#
# invalidate the coinc extractor in case all that follows
# is a no-op
self.last_coincs = {}
# check that we've accumulated thinca_interval seconds, and
# that .add_events() has been called with some events since
# the last flush
......@@ -355,10 +355,6 @@ class StreamThinca(object):
def flush(self, xmldoc, process_id, seglists, fapfar = None):
# invalidate the coinc extractor in case run_coincidence()
# is a no-op.
self.last_coincs = {}
# coincidence.
noncoinc_sngls = self.run_coincidence(xmldoc, process_id, segments.infinity(), seglists, fapfar = fapfar)
......
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