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

Include individual bands when plotting the PDF or the χ².

parent 5ac55965
...@@ -413,6 +413,8 @@ def chi2(config): ...@@ -413,6 +413,8 @@ def chi2(config):
""" """
input_data = read_table(config.configuration['data_file']) input_data = read_table(config.configuration['data_file'])
chi2_vars = config.configuration['analysis_params']['variables'] chi2_vars = config.configuration['analysis_params']['variables']
pdf_vars += [band for band in config.configuration['bands']
if band.endswith('_err') is False]
with mp.Pool(processes=config.configuration['cores']) as pool: with mp.Pool(processes=config.configuration['cores']) as pool:
items = product(input_data['id'], chi2_vars) items = product(input_data['id'], chi2_vars)
...@@ -426,6 +428,8 @@ def pdf(config): ...@@ -426,6 +428,8 @@ def pdf(config):
""" """
input_data = read_table(config.configuration['data_file']) input_data = read_table(config.configuration['data_file'])
pdf_vars = config.configuration['analysis_params']['variables'] pdf_vars = config.configuration['analysis_params']['variables']
pdf_vars += [band for band in config.configuration['bands']
if band.endswith('_err') is False]
with mp.Pool(processes=config.configuration['cores']) as pool: with mp.Pool(processes=config.configuration['cores']) as pool:
items = product(input_data['id'], pdf_vars) items = product(input_data['id'], pdf_vars)
......
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