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

Now that we handle the luminosity and the individual component separately for...

Now that we handle the luminosity and the individual component separately for speed reasons, we must not forget to scale the total luminosity appropriately when redshifting. Otherwise the fluxes in the filters will be overestimated by a factor 1+z.
parent 173d3956
......@@ -195,6 +195,7 @@ class Redshifting(CreationModule):
# We modify each luminosity contribution to keep energy constant
sed.luminosities /= 1. + redshift
sed.luminosity /= 1. + redshift
sed.add_info("redshift", redshift)
sed.add_info("universe.luminosity_distance", self.luminosity_distance)
......
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