Skip to content
Snippets Groups Projects
Commit 985015b9 authored by Patrick Godwin's avatar Patrick Godwin
Browse files

gstlal_inspiral: fix bugs introduced by horizon distance commits

parent ce378f5d
No related branches found
No related tags found
No related merge requests found
Pipeline #31694 passed
......@@ -549,7 +549,7 @@ def make_horizon_distance_func(banks, sngl_inspiral_table):
# to provide the canonical waveform model. See Maggiore equation
# (4.3).
assert len(sngl_inspiral_table) > 0, "no templates: must have templates to define horizon distance function"
median_row = sorted(sngl_inspiral_table, key = lambda row: row.mchirp^(5./3.))[len(sngl_inspiral_table) // 2]
median_row = sorted(sngl_inspiral_table, key = lambda row: row.mchirp**(5./3.))[len(sngl_inspiral_table) // 2]
return reference_psd.HorizonDistance(10.0, 0.85 * max(nyquists), deltaF, median_row.mass1, median_row.mass2)
......
......@@ -617,6 +617,7 @@ class Handler(simplehandler.Handler):
# FIXME: detangle this
self.gracedbwrapper.lock = self.lock
self.kafka_server = kafka_server
self.eye_candy = EyeCandy(rankingstat.instruments, self.kafka_server, self.tag, pipeline)
# FIXME: detangle this
self.eye_candy.lock = self.lock
......
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