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

Repair the badly broken dustatt_powerlaw module. It did not handle the...

Repair the badly broken dustatt_powerlaw module. It did not handle the contribution names properly, which broke the code if the nebular module was called.
parent cea37c03
......@@ -206,10 +206,8 @@ class PowerLawAtt(CreationModule):
attenuation_total += attenuation
sed.add_module(self.name, self.parameters)
sed.add_info("attenuation.Av.stellar" +
contrib[contrib.find('_'):], av[age])
sed.add_info("attenuation.stellar" +
contrib[contrib.find('_'):], attenuation, True)
sed.add_info("attenuation.Av." + contrib, av[age])
sed.add_info("attenuation." + contrib, attenuation, True)
sed.add_contribution("attenuation." + contrib, wavelength,
attenuation_spectrum)
......
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