From 48cbaa6e7db96ca9afbf5fda705704c120148207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9d=C3=A9ric=20Boquien?= Date: Thu, 22 Aug 2019 12:00:55 +0200 Subject: [PATCH] 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 --- CHANGELOG.md | 1 + pcigale/session/configuration.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a000688e..1b67ce62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pcigale/session/configuration.py b/pcigale/session/configuration.py index 7daeb2a8..517e220d 100644 --- a/pcigale/session/configuration.py +++ b/pcigale/session/configuration.py @@ -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']) -- GitLab