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
899be64f
Commit
899be64f
authored
May 20, 2015
by
Médéric Boquien
Browse files
Update the analysis modules workers to use the prefixed sfh.age.
parent
f9b839dd
Changes
2
Show whitespace changes
Inline
Side-by-side
pcigale/analysis_modules/pdf_analysis/workers.py
View file @
899be64f
...
...
@@ -169,7 +169,7 @@ def sed(idx):
sed
=
gbl_warehouse
.
get_sed
(
gbl_params
.
modules
,
gbl_params
.
from_index
(
idx
))
if
'age'
in
sed
.
info
and
sed
.
info
[
'age'
]
>
sed
.
info
[
'universe.age'
]:
if
'
sfh.
age'
in
sed
.
info
and
sed
.
info
[
'
sfh.
age'
]
>
sed
.
info
[
'universe.age'
]:
model_fluxes
=
-
99.
*
np
.
ones
(
len
(
gbl_filters
))
model_variables
=
-
99.
*
np
.
ones
(
len
(
gbl_analysed_variables
))
else
:
...
...
pcigale/analysis_modules/savefluxes/workers.py
View file @
899be64f
...
...
@@ -81,7 +81,7 @@ def fluxes(idx):
if
gbl_save_sed
==
True
:
sed
.
to_votable
(
OUT_DIR
+
"{}_best_model.xml"
.
format
(
idx
))
if
'age'
in
sed
.
info
and
sed
.
info
[
'age'
]
>
sed
.
info
[
'universe.age'
]:
if
'
sfh.
age'
in
sed
.
info
and
sed
.
info
[
'
sfh.
age'
]
>
sed
.
info
[
'universe.age'
]:
model_fluxes
=
-
99.
*
np
.
ones
(
len
(
gbl_filters
))
else
:
model_fluxes
=
np
.
array
([
sed
.
compute_fnu
(
filter_
.
trans_table
,
...
...
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