Commit 48cbaa6e authored by Médéric Boquien's avatar Médéric Boquien

Implementation of the auto-detection of lines in the input flux file so they...

Implementation of the auto-detection of lines in the input flux file so they are automatically added to the list of bands in pcigale.ini
parent b2690f18
......@@ -4,6 +4,7 @@
### Added
- The (1+z1)/(1+z2) factor between observed and grid flux densities caused by the differential redshifting is now taken into account. With a default grid redshift rounding of two decimals this yields a difference of at most 0.5% in the estimated physical properties at z=0 and even less at higher z. (Médéric Boquien)
- The list of bands for which to carry out a Bayesian flux estimate is now configurable. By default this corresponds to the fitted bands but it also supports bands that are not included in the fit. This can be set in the `fluxes` parameter of the `pdf\_analysis` module. (Médéric Boquien)
- Implementation of the auto-detection of lines in the input flux file so they are automatically added to the list of bands in `pcigale.ini`. (Médéric Boquien)
### Changed
- Python 3.6 is now the minimum required version. (Médéric Boquien)
- The logo has now been moved to the lower-right corner of the figure so that it does not overlap with any information and it has been updated for a less pixelated version. (Médéric Boquien & Rodrigo González Castillo)
......
......@@ -21,7 +21,7 @@ from .. import sed_modules
from .. import analysis_modules
from ..warehouse import SedWarehouse
from . import validation
from pcigale.sed_modules.nebular import default_lines
class Configuration(object):
"""This class manages the configuration of pcigale.
......@@ -161,6 +161,7 @@ class Configuration(object):
# Getting the list of the filters available in pcigale database
with Database() as base:
filter_list = base.get_filter_names()
filter_list += [f'line.{line}' for line in default_lines]
if self.config['data_file'] != '':
obs_table = read_table(self.config['data_file'])
......
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