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

inspiral.py: set effective distances to NaN

parent da68de86
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -52,6 +52,12 @@
import bisect
from collections import deque
try:
from fpconst import NaN
except ImportError:
# fpconst is not part of the standard library and might not be
# available
NaN = float("nan")
import itertools
import math
import numpy
......@@ -671,6 +677,17 @@ class Data(object):
# triggers, make sure that worked
assert all(event.end in buf_seg for event in events)
# set all effective distances to NaN.
# gstlal_inspiral's effective distances are
# incorrect, and the PE codes require us to either
# provide correct effective distances or
# communicate to them that they are incorrect.
# they have explained that setting them to NaN is
# sufficient for the latter.
# FIXME: fix the effective distances
for event in events:
event.eff_dist = NaN
# Find max SNR sngles
if events:
max_snr_event = max(events, key = lambda t: t.snr)
......
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