Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
CIGALE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cigale
CIGALE
Commits
b6e74d77
Commit
b6e74d77
authored
Feb 14, 2016
by
Médéric Boquien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the now non-existent sfh_time variable.
parent
36a3b9ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pcigale/sed_modules/m2005.py
pcigale/sed_modules/m2005.py
+2
-2
No files found.
pcigale/sed_modules/m2005.py
View file @
b6e74d77
...
...
@@ -89,13 +89,13 @@ class M2005(SedModule):
# separation age.)
young_sfh
=
np
.
copy
(
sed
.
sfh
)
young_sfh
[:
-
self
.
separation_age
]
=
0.
young_masses
,
young_spectrum
=
self
.
ssp
.
convolve
(
sfh_time
,
young_sfh
)
young_masses
,
young_spectrum
=
self
.
ssp
.
convolve
(
young_sfh
)
# Then, we process the old population. If the SFH is shorter than the
# separation age then all the arrays will consist only of 0.
old_sfh
=
np
.
copy
(
sed
.
sfh
)
old_sfh
[
-
self
.
separation_age
:]
=
0.
old_masses
,
old_spectrum
=
self
.
ssp
.
convolve
(
sfh_time
,
old_sfh
)
old_masses
,
old_spectrum
=
self
.
ssp
.
convolve
(
old_sfh
)
sed
.
add_module
(
self
.
name
,
self
.
parameters
)
...
...
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