Commit 30f7bb81 authored by CORRE David's avatar CORRE David
Browse files

Make possible to use a module after redshifting

Get automatically the index of the module redshifting for the parameter_list dictionary when getting the real redshift for computing the best model SED.
parent 6a53d6c5
......@@ -252,7 +252,7 @@ def bestfit(oidx, obs):
# 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
params[gbl_params.modules.index('redshifting')]['redshift'] = obs.redshift
sed = gbl_warehouse.get_sed(gbl_params.modules, params)
fluxes = np.array([sed.compute_fnu(filt) for filt in gbl_obs.bands])
Supports Markdown
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