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

Read the list of sed modules from pcigale.ini. This is more flexible than...

Read the list of sed modules from pcigale.ini. This is more flexible than inferring this list from the input parameters file as some modules can be missing (for instance when using the default values for all the parameters of a given module).
parent d28b636c
......@@ -19,6 +19,7 @@
- In the absence of a nebular component `restframe\_parameters` would crash when attempting to compute the equivalent widths of the lines listed in `EW_lines`. Now they are simply ignored. (Médéric Boquien)
- The luminosity spectrum of the best fit was saved assuming the distance corresponding to the redshift rounded to two decimals. This was an issue in particular at very low redshift as a difference of 0.005 in redshift can translate to a large difference on the luminosity distance. Now the exact luminosity distance of the object is used to compute the spectrum luminosity. (Médéric Boquien, reported by Jorge Melnick)
- When using the `parameters\_file` option, the indices of the models now correspond to the line number of the input file. (Médéric Boquien)
- When using the `parameters\_file` option, the list of modules is read from `sed\_modules` rather than being inferred from the input file. (Médéric Boquien)
### Optimised
- The cache architecture has been simplified, making it somewhat faster. It speeds up the model generation by ~1%. (Médéric Boquien)
......@@ -178,12 +178,7 @@ class ParametersManagerFile(object):
table = read_table(conf['parameters_file'])
self.size = len(table)
self.modules = []
for colname in table.colnames:
module = colname.split('.', 1)[0]
if module not in self.modules:
self.modules = conf['sed_modules']
self.blocks = self._split(range(self.size),
Supports Markdown
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