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

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
parent efd1869b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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