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

streamthinca: fix crash in .discard_boundary

- fails with AttributeError if invoked before any triggers have been processed.
- this patch fixes by setting a default value for .coincideice_backoff of .max_dt
parent 5466fd2f
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,10 @@ class StreamThinca(object):
# the \Delta t window not including the light travel time
self.coincidence_threshold = coincidence_threshold
# allow .discard_boundary to return meaningful results
# before the first set of triggers are processed
self.coincidence_back_off = self.max_dt
# upper boundary of interval spanned by last invocation
self.last_boundary = -segments.infinity()
......
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