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

Remove leftover comments from debugging and add the stellar population back in...

Remove leftover comments from debugging and add the stellar population back in the output parameters.
parent 9a3d7941
......@@ -123,9 +123,6 @@ class MBB(CreationModule):
wavelength = sed.wavelength_grid
sed.add_info(item_balance, 1., True)
sed.add_contribution(item_balance, wavelength, -lumin * epsilon)
# We read again the dust luminosities to check everything is OK.
# lumin2 = sed.get_lumin_contribution(item_balance)
# print("residual", lumin, lumin2)
# If the modified black body does not enter into the energy budget,
# we do not change the luminosity of other dust contributions.
......
......@@ -110,14 +110,6 @@ class Param(CreationModule):
D_4000 = np.mean(luminosity[w_D4000red]) / np.mean(luminosity[w_D4000blue])
#plt.scatter(np.log10(10.*wavelength[w_calz94]),
# np.log10(1e7/10.*luminosity[w_calz94]),
# alpha=0.5, color="b", marker="v")
#plt.plot(np.log10(10.*wavelength[w_calz94]),
# regression_calz94[0]*np.log10(10.*wavelength[w_calz94])+regression_calz94[1],
# alpha=0.5, color="r", linestyle="-")
#plt.show()
sed.add_info("param.beta_calz94", beta_calz94)
sed.add_info("param.FUV_luminosity", L_FUV, True)
sed.add_info("param.D_4000", D_4000)
......
......@@ -99,11 +99,9 @@ class SfhComb(CreationModule):
# Ages of the sequence of SF events in Myr,
# N_events over "age" with the last one starting at "age_last"
time_event = np.linspace(0., age-age_last, num = N_events)
#print("time_event", time_event)
for i_time in range(N_events):
sfr[time_event[i_time]:time_event[i_time]+t_duration] = sfr_A
#print("sfr", sfr)
# Compute the galaxy mass and normalise the SFH to 1 solar mass
# produced if asked to.
......@@ -120,7 +118,7 @@ class SfhComb(CreationModule):
sed.add_info("sfh.N_events", N_events)
sed.add_info("sfh.t_duration", t_duration)
sed.add_info("sfh.age_last", age_last)
#sed.add_info("age", age)
sed.add_info("sfh.age", age)
# CreationModule to be returned by get_module
Module = SfhComb
......@@ -98,7 +98,6 @@ class SfhComb(CreationModule):
# Ages of the sequence of SF events in Myr,
# N_events over "age" with the last one starting at "age_last"
time_event = np.linspace(0., age-age_last, num = N_events)
#print("time_events", time_event)
# Add each delayed SFH
for i_time in range(N_events):
......@@ -121,7 +120,7 @@ class SfhComb(CreationModule):
sed.add_info("sfh.N_events", N_events)
sed.add_info("sfh.tau_events", tau_events)
sed.add_info("sfh.age_last", age_last)
#sed.add_info("age", age)
sed.add_info("sfh.age", age)
# CreationModule to be returned by get_module
Module = SfhComb
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