Commit ef47ec5d authored by Médéric Boquien's avatar Médéric Boquien

Fix the criterion to determine whether we need to take into account upper limits or not.

parent 1bcf2c88
......@@ -199,8 +199,7 @@ def compute_chi2(models, obs, corr_dz, wz, lim_flag):
scaling: array
scaling of the models to obtain the minimum χ²
"""
limits = lim_flag and (np.any(obs.fluxes_err <= 0.)
or np.any(obs.extprops_err <= 0.))
limits = lim_flag and (len(obs.flux_ul) > 0 or len(obs.extprop_ul) > 0)
scaling = _compute_scaling(models, obs, wz)
# Some observations may not have flux values in some filter(s), but
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment