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

Fix the computation of the distance for the best fit in case we use photometric redshifts.

parent 2daf1d55
Pipeline #1671 skipped with stage
......@@ -260,7 +260,9 @@ def bestfit(oidx, obs):
# If the distance is user defined, the redshift-based luminosity distance
# of the model is probably incorrect so we replace it
sed.add_info('universe.luminosity_distance', obs.distance, force=True)
if np.isfinite(obs.distance):
sed.add_info('universe.luminosity_distance', obs.distance,
force=True)
for prop in gbl_results.best.intprop:
gbl_results.best.intprop[prop][oidx] = sed.info[prop]
......
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