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
c1f8ef2f
Commit
c1f8ef2f
authored
Apr 12, 2018
by
Médéric Boquien
Browse files
Re-enable the analysis of the age of the main stellar population in sfhdelayed
parent
cc75fcb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/sed_modules/sfhdelayed.py
View file @
c1f8ef2f
...
...
@@ -75,7 +75,7 @@ class SFHDelayed(SedModule):
def
_init_code
(
self
):
self
.
tau_main
=
float
(
self
.
parameters
[
"tau_main"
])
age_main
=
int
(
self
.
parameters
[
"age_main"
])
self
.
age_main
=
int
(
self
.
parameters
[
"age_main"
])
self
.
tau_burst
=
float
(
self
.
parameters
[
"tau_burst"
])
self
.
age_burst
=
int
(
self
.
parameters
[
"age_burst"
])
self
.
f_burst
=
float
(
self
.
parameters
[
"f_burst"
])
...
...
@@ -83,7 +83,7 @@ class SFHDelayed(SedModule):
normalise
=
bool
(
self
.
parameters
[
"normalise"
])
# Time grid for each component
t
=
np
.
arange
(
age_main
)
t
=
np
.
arange
(
self
.
age_main
)
t_burst
=
np
.
arange
(
self
.
age_burst
)
# SFR for each component
...
...
@@ -121,6 +121,7 @@ class SFHDelayed(SedModule):
# Add the sfh and the output parameters to the SED.
sed
.
sfh
=
self
.
sfr
sed
.
add_info
(
"sfh.integrated"
,
self
.
sfr_integrated
,
True
)
sed
.
add_info
(
"sfh.age_main"
,
self
.
age_main
)
sed
.
add_info
(
"sfh.tau_main"
,
self
.
tau_main
)
sed
.
add_info
(
"sfh.age_burst"
,
self
.
age_burst
)
sed
.
add_info
(
"sfh.tau_burst"
,
self
.
tau_burst
)
...
...
Write
Preview
Markdown
is supported
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