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
af958ae5
Commit
af958ae5
authored
Feb 04, 2016
by
Médéric Boquien
Browse files
Small optimisation to compute the age of the galaxy at all the time steps.
parent
62f18056
Changes
2
Hide whitespace changes
Inline
Side-by-side
pcigale/sed_modules/bc03.py
View file @
af958ae5
...
...
@@ -77,7 +77,7 @@ class BC03(SedModule):
ssp
=
self
.
ssp
# Age of the galaxy at each time of the SFH
sfh_age
=
np
.
max
(
sfh_time
)
-
sfh_time
sfh_age
=
sfh_time
[::
-
1
]
# First, we process the young population (age lower than the
# separation age.)
...
...
pcigale/sed_modules/m2005.py
View file @
af958ae5
...
...
@@ -89,7 +89,7 @@ class M2005(SedModule):
ssp
=
self
.
ssp
# Age of the galaxy at each time of the SFH
sfh_age
=
np
.
max
(
sfh_time
)
-
sfh_time
sfh_age
=
sfh_time
[::
-
1
]
# First, we process the young population (age lower than the
# separation age.)
...
...
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