Commit 1a044230 authored by Yannick Roehlly's avatar Yannick Roehlly

Correct old-young inversion in SSP modules

parent 474ca3fb
......@@ -93,13 +93,13 @@ class Module(common.SEDCreationModule):
# First, we process the young population (age lower than the
# separation age.)
young_sfh = np.copy(sfh_sfr)
young_sfh[sfh_age <= separation_age] = 0
young_sfh[sfh_age > separation_age] = 0
young_wave, young_lumin, young_info = ssp.convolve(sfh_time, young_sfh)
# Then, we process the old population. If the SFH is shorter than the
# separation age then all the arrays will consist only of 0.
old_sfh = np.copy(sfh_sfr)
old_sfh[sfh_age > separation_age] = 0
old_sfh[sfh_age <= separation_age] = 0
old_wave, old_lumin, old_info = ssp.convolve(sfh_time, old_sfh)
# SFR of the galaxy
......
......@@ -140,13 +140,13 @@ class Module(common.SEDCreationModule):
# First, we process the young population (age lower than the
# separation age.)
young_sfh = np.copy(sfh_sfr)
young_sfh[sfh_age <= separation_age] = 0
young_sfh[sfh_age > separation_age] = 0
young_masses, young_spectrum = ssp.convolve(sfh_time, young_sfh)
# Then, we process the old population. If the SFH is shorter than the
# separation age then all the arrays will consist only of 0.
old_sfh = np.copy(sfh_sfr)
old_sfh[sfh_age > separation_age] = 0
old_sfh[sfh_age <= separation_age] = 0
old_masses, old_spectrum = ssp.convolve(sfh_time, old_sfh)
# SFR of the galaxy
......
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