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
514352af
Commit
514352af
authored
Mar 06, 2014
by
Médéric Boquien
Browse files
Make the test to compute the galaxy mass independent from the names of the modules.
parent
f4f8275d
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/analysis_modules/pdf_analysis/__init__.py
View file @
514352af
...
...
@@ -337,7 +337,7 @@ class PdfAnalysis(AnalysisModule):
model_variables
[:,
:,
index
]
*=
normalisation_factors
# We also add the galaxy mass to the analysed variables
if
any
(
module
in
creation_modules
for
module
in
(
'bc03'
,
'm2005'
))
:
if
sed
.
sfh
is
not
None
:
analysed_variables
.
insert
(
0
,
"galaxy_mass"
)
model_variables
=
np
.
dstack
((
normalisation_factors
,
model_variables
))
...
...
@@ -412,7 +412,7 @@ class PdfAnalysis(AnalysisModule):
reduced_chi_squares
[
best_model_index
,
range
(
len
(
best_model_index
))],
name
=
"reduced_chi_square"
))
if
any
(
module
in
creation_modules
for
module
in
(
'bc03'
,
'm2005'
))
:
if
sed
.
sfh
is
not
None
:
best_model_table
.
add_column
(
Column
(
normalisation_factors
[
best_model_index
,
range
(
len
(
best_model_index
))],
...
...
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