Commit 84d7e18c authored by Yannick Roehlly's avatar Yannick Roehlly
Browse files

Use log10 for magnitudes

parent 3da5cbc1
......@@ -361,8 +361,8 @@ class CalzLeit(CreationModule):
# Attenuation in each filter
for filter_name in filters:
sed.add_info(filter_name + "_attenuation" + self.postfix,
-2.5 * np.log(flux_att[filter_name] /
flux_noatt[filter_name]))
-2.5 * np.log10(flux_att[filter_name] /
flux_noatt[filter_name]))
# CreationModule to be returned by get_module
Module = CalzLeit
......@@ -283,8 +283,8 @@ class PowerLawAtt(CreationModule):
# Attenuation in each filter
for filter_name in filters:
sed.add_info(filter_name + "_attenuation" + self.postfix,
-2.5 * np.log(flux_att[filter_name] /
flux_noatt[filter_name]))
-2.5 * np.log10(flux_att[filter_name] /
flux_noatt[filter_name]))
# CreationModule to be returned by get_module
Module = PowerLawAtt
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