From e720c0c11787f55c5850d20157226ef8801bc67f Mon Sep 17 00:00:00 2001 From: Cody Messick <cody.messick@ligo.org> Date: Thu, 17 May 2018 11:49:00 -0400 Subject: [PATCH] inspiral_lr.py: added None template_id to random_params because likelihood-ratio code requires it now --- gstlal-inspiral/python/stats/inspiral_lr.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gstlal-inspiral/python/stats/inspiral_lr.py b/gstlal-inspiral/python/stats/inspiral_lr.py index 5489c2afdf..fdbb8ff292 100644 --- a/gstlal-inspiral/python/stats/inspiral_lr.py +++ b/gstlal-inspiral/python/stats/inspiral_lr.py @@ -804,6 +804,10 @@ class LnNoiseDensity(LnLRDensity): # off at "t" kwargs["dt"] = t_offsets_gen[instruments]() kwargs["phase"] = dict((instrument, random_uniform(0., twopi)) for instrument in instruments) + # FIXME random_params needs to be given a meaningful + # template_id, but for now it is not used in the + # likelihood-ratio assignment so we don't care + kwargs["template_id"] = None # NOTE: I think the result of this sum is, in # fact, correctly normalized, but nothing requires # it to be (only that it be correct up to an -- GitLab