Commit bf4fe407 authored by Médéric Boquien's avatar Médéric Boquien

Make the separation age consistent with the fact that timegrids start at 0.

parent 9d825558
......@@ -82,13 +82,13 @@ class BC03(SedModule):
# First, we process the young population (age lower than the
# separation age.)
young_sfh = np.copy(sfh_sfr)
young_sfh[sfh_age > self.separation_age] = 0
young_sfh[sfh_age > self.separation_age - 1] = 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 <= self.separation_age] = 0
old_sfh[sfh_age <= self.separation_age - 1] = 0
old_wave, old_lumin, old_info = ssp.convolve(sfh_time, old_sfh)
# We compute the Lyman continuum luminosity as it is important to
......
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