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

If the AGN fraction is 0, then there is no need to add a component to the SED....

If the AGN fraction is 0, then there is no need to add a component to the SED. It would have a value of 0 everywhere. It looks like we gain around 30% in computation time in this case.
parent a59a38bf
......@@ -97,8 +97,9 @@ class Dale2014(CreationModule):
sed.add_contribution('dust', self.model_sb.wave,
luminosity * self.model_sb.lumin)
sed.add_contribution('agn', self.model_quasar.wave,
L_AGN * self.model_quasar.lumin)
if frac_agn != 0.:
sed.add_contribution('agn', self.model_quasar.wave,
L_AGN * self.model_quasar.lumin)
# CreationModule to be returned by get_module
Module = Dale2014
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