Commit 6d83c0c3 authored by Médéric Boquien's avatar Médéric Boquien

Simplify the construction of modules by remove the out_parameter_list...

Simplify the construction of modules by remove the out_parameter_list dictionary. It was not used anywhere, was not always provided, and was not even up to date.
parent 98561c86
......@@ -79,14 +79,6 @@ class CreationModule(object):
# be the default value, use the 'None' string instead.
parameter_list = dict()
# out_parameter_list is a dictionary containing all the SED
# parameters that are added to the SED info dictionary and for which a
# statistical analysis may be done. Each parameter name is associated with
# its description. In the SED info dictionary, the parameter name in
# is postfixed with a same postfix used in the module name, to allow
# the use of repeated modules.
out_parameter_list = dict()
# comments is the text that is used to comment the module section in
# the configuration file. For instance, it can be used to give special
# instructions for the configuration.
......
......@@ -47,24 +47,6 @@ class BC03(CreationModule):
))
])
out_parameter_list = dict([
("sfr", "Instantaneous Star Formation Rate in solar mass per year, "
"at the age of the galaxy."),
('sfr10Myrs', 'Average SFR in the last 10 Myr (default) of the '
'galaxy history.'),
('sfr100Myrs', 'Average SFR in the last 100 Myr (default) of the '
'galaxy history.'),
("ssp_m_star", "Total mass in stars in Solar mass."),
("ssp_m_gas", "Mass returned to the ISM by evolved stars in Solar "
"mass."),
("ssp_n_ly", "rate of H-ionizing photons in s^-1, per Solar mass "
"of galaxy."),
("ssp_b_4000", "Amplitude of 4000 Å break (Bruzual 2003)"),
("ssp_b4_vn", "Amplitude of 4000 Å narrow break (Balogh et al. 1999)"),
("ssp_b4_sdss", "Amplitude of 4000 Å break (Stoughton et al. 2002)"),
("ssp_b_912", "Amplitude of Lyman discontinuity")
])
def _init_code(self):
"""Read the SSP from the database."""
if self.parameters["imf"] == 0:
......
......@@ -45,12 +45,6 @@ class Casey2012(CreationModule):
))
])
out_parameter_list = dict([
("temperature", "Temperature of the dust in K."),
("beta", "Emissivity index of the dust."),
("alpha", "Mid-infrared powerlaw slope.")
])
def _init_code(self):
"""Build the model for a given set of parameters."""
......
......@@ -50,12 +50,6 @@ class Dale2014(CreationModule):
))
])
out_parameter_list = dict([
('fracAGN', 'Contribution of the AGN'),
('alpha', 'Alpha slope'),
('lir', 'Total IR luminosity between 8 and 1000 microns (AGN + SB)')
])
def _init_code(self):
"""
Get the models out of the database
......
......@@ -58,13 +58,6 @@ class DL2007(CreationModule):
))
])
out_parameter_list = dict([
('qpah', 'Mass fraction of PAH'),
('umin', 'Minimum radiation field'),
('umax', 'Maximum radiation field'),
('gamma', 'Fraction illuminated from Umin to Umax')
])
def _init_code(self):
"""Get the model out of the database"""
......
......@@ -61,13 +61,6 @@ class DL2014(CreationModule):
))
])
out_parameter_list = dict([
('qpah', 'Mass fraction of PAH'),
('umin', 'Minimum radiation field'),
('alpha', 'Power law slope dU/dM∝U¯ᵅ'),
('gamma', 'Fraction illuminated from Umin to Umax')
])
def _init_code(self):
"""Get the model out of the database"""
......
......@@ -221,20 +221,6 @@ class CalzLeit(CreationModule):
))
])
out_parameter_list = dict([
("E_BVs", "E(B-V), the colour excess of the stellar continuum "
"light for each population."),
("E_BVs_old_factor", "Ratio of the old population E(B-V) to the "
"young one."),
("attenuation", "Amount of luminosity attenuated in W for each "
"component and in total."),
("uv_bump_wavelength", "Central wavelength of UV bump in nm."),
("uv_bump_width", "Width of the UV bump in nm."),
("uv_bump_amplitude", "Amplitude of the UV bump in nm."),
("powerlaw_slope", "Slope of the power law."),
("FILTER_attenuation", "Attenuation in the FILTER filter.")
])
def _init_code(self):
"""Get the filters from the database"""
self.filter_list = [item.strip() for item in
......
......@@ -146,20 +146,6 @@ class PowerLawAtt(CreationModule):
))
])
out_parameter_list = dict([
("Av", "V-band attenuation."),
("Av_old_factor", "Reduction factor for the V-band attenuation "
"of the old population compared to the young "
"one (<1)."),
("attenuation", "Amount of luminosity attenuated in W for each "
"component and in total."),
("uv_bump_wavelength", "Central wavelength of UV bump in nm."),
("uv_bump_width", "Width of the UV bump in nm."),
("uv_bump_amplitude", "Amplitude of the UV bump in nm."),
("powerlaw_slope", "Slope of the power law."),
("FILTER_attenuation", "Attenuation in the FILTER filter.")
])
def _init_code(self):
self.filter_list = [item.strip() for item in
self.parameters["filters"].split("&")]
......
......@@ -83,17 +83,6 @@ class Fritz2006(CreationModule):
))
])
out_parameter_list = dict([
('fracAGN', 'Contribution of the AGN'),
('agn.therm_luminosity', 'Luminosity of the AGN contribution due to '
'the dust torus'),
('agn.scatt_luminosity', 'Luminosity of the AGN contribution due to '
'the photon scattering'),
('agn.agn_luminosity', 'Luminosity of the AGN contribution due to the '
'central source'),
('agn.luminosity', 'Total luminosity of the AGN contribution')
])
def _init_code(self):
"""Get the template set out of the database"""
r_ratio = self.parameters["r_ratio"]
......
......@@ -59,43 +59,6 @@ class M2005(CreationModule):
))
])
out_parameter_list = dict([
('sfr', 'Instantaneous Star Formation Rate in solar mass per year, '
'at the age of the galaxy.'),
('sfr10Myrs', 'Average SFR in the last 10 Myr (default) of the '
'galaxy history.'),
('sfr100Myrs', 'Average SFR in the last 100 Myr (default) of the '
'galaxy history.'),
('mass_total', 'Total stellar mass of the galaxy in solar mass.'),
('mass_alive', 'Mass of alive stars in solar mass.'),
('mass_white_dwarf', 'Mass of white dwarf stars in solar mass.'),
('mass_neutron', 'Mass of neutron stars in solar mass.'),
('mass_black_hole', 'Mass of black holes in solar mass.'),
('old_young_separation_age', 'Age (in Myr) separating the old and '
'the young star populations (0 if there '
'is only one population).'),
('mass_total_old', 'Total stellar mass of the old population in solar '
'mass.'),
('mass_alive_old', 'Mass of alive stars in solar mass (old '
'population).'),
('mass_white_dwarf_old', 'Mass of white dwarf stars in solar mass '
'(old population).'),
('mass_neutron_old', 'Mass of neutron stars in solar mass '
'(old population).'),
('mass_black_hole_old', 'Mass of black holes in solar mass '
'(old population).'),
('mass_total_young', 'Total stellar mass of the young population '
'in solar mass.'),
('mass_alive_young', 'Mass of alive stars in solar mass '
'(young population).'),
('mass_white_dwarf_young', 'Mass of white dwarf stars in solar mass '
'(young population).'),
('mass_neutron_young', 'Mass of neutron stars in solar mass '
'(young population).'),
('mass_black_hole_young', 'Mass of black holes in solar mass '
'(young population).')
])
def _init_code(self):
"""Read the SSP from the database."""
if self.parameters["imf"] == 0:
......
......@@ -56,12 +56,6 @@ class MBB(CreationModule):
)),
])
out_parameter_list = dict([
("t_mbb", "Temperature of the modified black body in K."),
("beta_mbb", "Emissivity index of the modified black body."),
("epsilon_mbb", "Fraction of L_dust in the modified black body.")
])
def _init_code(self):
"""Build the model for a given set of parameters."""
......
......@@ -48,14 +48,6 @@ class NebularEmission(CreationModule):
))
])
out_parameter_list = dict([
('logU', "Ionisation parameter"),
('f_esc', "Fraction of Lyman continuum photons escaping "
"the galaxy"),
('f_dust', "Fraction of Lyman continuum photons absorbed by dust"),
('lines_width', "Width of the nebular lines")
])
def _init_code(self):
"""Get the nebular emission lines out of the database and resample
them to see the line profile. Compute scaling coefficients.
......
......@@ -37,12 +37,6 @@ class Param(CreationModule):
))
])
out_parameter_list = dict([
("beta_calz94", "The UV slope in the range 125-180&240-260nm"),
("FUV_luminosity", "The rest-frame FUV luminosity"),
("D_4000", "The D_4000 index")
])
def process(self, sed):
"""Computes the parameters for each model.
......
......@@ -45,11 +45,6 @@ class Radio(CreationModule):
))
])
out_parameter_list = dict([
("qir", "The value of the FIR/radio correlation coefficient."),
("alpha", "The slope of the power-law synchrotron emission.")
])
def _init_code(self):
"""Build the model for a given set of parameters."""
......
......@@ -68,17 +68,6 @@ class Sfh2Exp(CreationModule):
)),
])
out_parameter_list = dict([
("tau_main", "e-folding time of the main stellar population model "
"in Myr."),
("tau_burst", "e-folding time of the late starburst population model "
"in Myr."),
("f_burst", "Produced mass fraction of the late burst population."),
("age", "Age of the main stellar population in the galaxy in Myr."),
("burst_age", "Age of the late burst in Myr."),
("sfr_0", "SFR at t = 0 in M_sun/yr.")
])
def process(self, sed):
"""Add a double decreasing exponential Star Formation History.
......
......@@ -59,11 +59,6 @@ class SfhBuat08(CreationModule):
))
])
out_parameter_list = dict([
("sfh.velocity", "Rotational velocity of the galaxy in km/s."),
("galaxy_mass", "Mass of the galaxy in solar mass.")
])
def process(self, sed):
"""
Parameters
......
......@@ -51,12 +51,6 @@ class SfhQuench(CreationModule):
))
])
out_parameter_list = dict([
("sfh.quenching_age", "Age of the galaxt when the quenching occurs "
"in Myr."),
("sfh.quenching_factor", "Quenching factor applied.")
])
def process(self, sed):
"""
Parameters
......
......@@ -66,15 +66,6 @@ class SfhComb(CreationModule):
)),
])
out_parameter_list = dict([
("N_events", "Number of individual star formation events"),
("t_duration", "Length of each individual star formation event "
"in Myr."),
("age", "Age of the stellar population in the galaxy in Myr."),
("age_last", "Time since the end of the last SF event in Myr."),
("sfr_A", "Height of each SF event in M_sun/yr.")
])
def process(self, sed):
"""Add a star formation history formed by several regularly-spaced short SF events.
......
......@@ -65,14 +65,6 @@ class SfhComb(CreationModule):
)),
])
out_parameter_list = dict([
("N_events", "Number of individual star formation events"),
("tau_events", "e-folding time of all short events in Myr.."),
("age", "Age of the stellar population in the galaxy in Myr."),
("age_last", "Time since the end of the last SF event in Myr."),
("sfr_A", "Height of each SF event in M_sun/yr.")
])
def process(self, sed):
"""Add a star formation history formed by several
regularly-spaced delayed-SFH short SF events.
......
......@@ -54,13 +54,6 @@ class SFHDelayed(CreationModule):
))
])
out_parameter_list = dict([
("tau_main", "e-folding time of the main stellar population model "
"in Myr."),
("age", "Age of the oldest stars in the galaxy in Myr."),
("sfr_A", "Multiplicative factor controlling the amplitude of SFR.")
])
def process(self, sed):
"""
Parameters
......
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