The best fit could not be computed in photo-z mode because the redshift was negative.
|...||...||@@ -239,6 +239,7 @@ def bestfit(oidx, obs):|
|# We compute the model at the exact redshift not to have to correct for the|
|# difference between the object and the grid redshifts.|
|params = deepcopy(gbl_params.from_index(best_index))|
|if obs['redshift'] >= 0.:|
|params[-1]['redshift'] = obs['redshift']|
|sed = gbl_warehouse.get_sed(gbl_params.modules, params)|