Commit 2ac044f0 authored by Yannick Roehlly's avatar Yannick Roehlly

Redshift the best SED before plotting / saving

The best SED must pass through the redshift/IGM module before being
saved/plotted.
parent 52af6e0f
......@@ -266,6 +266,11 @@ class Module(common.AnalysisModule):
best_norm_factor = comp_table[best_index, obs_index, 2]
best_params = sed_modules_params[best_index]
best_sed = sed_warehouse.get_sed(sed_modules, best_params)
# We need to pass the SED through the redshit/IGM module before
# plotting it.
obs_redshift = obs_table['redshift'][obs_index]
redshift_module.parameters["redshift"] = obs_redshift
redshift_module.process(best_sed)
# Save best SED
# TODO: For now, we only save the lambda vs fnu table. Once
......
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