Commit f452ec52 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Merge branch 'develop' into 'develop'

Make possible to use a module after redshifting

See merge request !1
parents 6a53d6c5 30f7bb81
......@@ -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