Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cigale
CIGALE
Commits
ac38dd23
Commit
ac38dd23
authored
Jan 20, 2016
by
Yannick Roehlly
Browse files
Correct '_log' stripping in variable names
parent
3ace8b67
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/analysis_modules/pdf_analysis/__init__.py
View file @
ac38dd23
...
...
@@ -126,8 +126,9 @@ class PdfAnalysis(AnalysisModule):
# Initalise variables from input arguments.
analysed_variables
=
config
[
"analysed_variables"
]
analysed_variables_nolog
=
[
''
.
join
(
variable
.
rsplit
(
'_log'
,
1
))
for
variable
in
analysed_variables
]
analysed_variables_nolog
=
[
variable
[:
-
4
]
if
variable
.
endswith
(
'_log'
)
else
variable
for
variable
in
analysed_variables
]
n_variables
=
len
(
analysed_variables
)
save
=
{
key
:
config
[
"save_{}"
.
format
(
key
)].
lower
()
==
"true"
for
key
in
[
"best_sed"
,
"chi2"
,
"pdf"
]}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment