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

Some parameters were not properly scaled.

parent 2f066dd7
......@@ -419,11 +419,12 @@ class PdfAnalysis(AnalysisModule):
))
for index, name in enumerate(model_info_names):
best_model_table.add_column(Column(
[model_info[model_idx][index] for model_idx
in best_model_index],
name=name
))
column = Column([list(model_info[model_idx])[index] for model_idx
in best_model_index], name=name)
if name in sed.mass_proportional_info:
column *= (normalisation_factors[best_model_index,
range(len(best_model_index))])
best_model_table.add_column(column)
best_model_table.write(OUT_DIR + BEST_MODEL_FILE)
......
......@@ -107,7 +107,7 @@ class BC03(CreationModule):
sed.add_info("stellar.m_star_young", young_info["m_star"], True)
sed.add_info("stellar.m_gas_young", young_info["m_gas"], True)
sed.add_info("stellar.n_ly_young", young_info["n_ly"])
sed.add_info("stellar.n_ly_young", young_info["n_ly"], True)
sed.add_info("stellar.b_400_young", young_info["b_4000"])
sed.add_info("stellar.b4_vn_young", young_info["b4_vn"])
sed.add_info("stellar.b4_sdss_young", young_info["b4_sdss"])
......@@ -115,7 +115,7 @@ class BC03(CreationModule):
sed.add_info("stellar.m_star_old", old_info["m_star"], True)
sed.add_info("stellar.m_gas_old", old_info["m_gas"], True)
sed.add_info("stellar.n_ly_old", old_info["n_ly"])
sed.add_info("stellar.n_ly_old", old_info["n_ly"], True)
sed.add_info("stellar.b_400_old", old_info["b_4000"])
sed.add_info("stellar.b4_vn_old", old_info["b4_vn"])
sed.add_info("stellar.b4_sdss_old", old_info["b4_sdss"])
......
......@@ -289,12 +289,12 @@ class CalzLeit(CreationModule):
sed.add_module(self.name, self.parameters)
sed.add_info("attenuation.E_BVs." + contrib, ebvs[age])
sed.add_info("attenuation." + contrib, attenuation)
sed.add_info("attenuation." + contrib, attenuation, True)
sed.add_contribution("attenuation." + contrib, wavelength,
attenuation_spectrum)
# Total attenuation
sed.add_info("attenuation.total", attenuation_total)
sed.add_info("attenuation.total", attenuation_total, True)
# Fλ fluxes (only from continuum) in each filter after attenuation.
flux_att = {}
......
......@@ -214,12 +214,12 @@ class PowerLawAtt(CreationModule):
sed.add_module(self.name, self.parameters)
sed.add_info("attenuation.Av." + contrib, av[age])
sed.add_info("attenuation." + contrib, attenuation)
sed.add_info("attenuation." + contrib, attenuation, True)
sed.add_contribution("attenuation." + contrib, wavelength,
attenuation_spectrum)
# Total attenuation
sed.add_info("attenuation.total", attenuation_total)
sed.add_info("attenuation.total", attenuation_total, True)
# Fλ fluxes (only in continuum) in each filter after attenuation.
flux_att = {}
......
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