From cd156a3c11e4d1dad3bc856f4fa21044b56c5929 Mon Sep 17 00:00:00 2001 From: Kipp Cannon <kipp.cannon@ligo.org> Date: Fri, 20 Apr 2018 14:47:22 +0900 Subject: [PATCH] far.py: a pair of small tweaks - fix a typo in a comment - reduce the number of boolean operations in the extinction model fitting code --- gstlal-inspiral/python/far.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gstlal-inspiral/python/far.py b/gstlal-inspiral/python/far.py index ad739a7bb6..b9618e7910 100644 --- a/gstlal-inspiral/python/far.py +++ b/gstlal-inspiral/python/far.py @@ -581,7 +581,7 @@ WHERE # masked array containing the zerolag data for the fit. # the mask selects the bins to be *ignored* for the fit. - # this is indended to decouple the fit from bins that + # this is intended to decouple the fit from bins that # potentially contain a genuine zero-lag population and/or # that have too small a count to have been well measured, # and/or can't be modelled correctly by this fit anyway. @@ -592,7 +592,7 @@ WHERE def ssr((norm, rate_eff, m)): # explicitly exclude disallowed parameter values - if not (0. < norm and rate_eff > 0. and m > 0.): + if norm <= 0. or rate_eff <= 0. or m <= 0.: return PosInf # the extinction model applied to the background -- GitLab