Commit ac38dd23 authored by Yannick Roehlly's avatar Yannick Roehlly
Browse files

Correct '_log' stripping in variable names

parent 3ace8b67
...@@ -126,8 +126,9 @@ class PdfAnalysis(AnalysisModule): ...@@ -126,8 +126,9 @@ class PdfAnalysis(AnalysisModule):
# Initalise variables from input arguments. # Initalise variables from input arguments.
analysed_variables = config["analysed_variables"] analysed_variables = config["analysed_variables"]
analysed_variables_nolog = [''.join(variable.rsplit('_log', 1)) for analysed_variables_nolog = [variable[:-4] if variable.endswith('_log')
variable in analysed_variables] else variable for variable in
n_variables = len(analysed_variables) n_variables = len(analysed_variables)
save = {key: config["save_{}".format(key)].lower() == "true" save = {key: config["save_{}".format(key)].lower() == "true"
for key in ["best_sed", "chi2", "pdf"]} for key in ["best_sed", "chi2", "pdf"]}
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