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
c643a0fb
Commit
c643a0fb
authored
Mar 24, 2014
by
Médéric Boquien
Browse files
Kroupa IMF rather than Chrabrier for m2005
parent
83e13558
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/creation_modules/m2005.py
View file @
c643a0fb
...
...
@@ -43,7 +43,7 @@ class M2005(CreationModule):
parameter_list
=
OrderedDict
([
(
'imf'
,
(
'int'
,
"Initial mass function: 0 (Salpeter) or 1 (
Chabrier
)"
,
"Initial mass function: 0 (Salpeter) or 1 (
Kroupa
)"
,
None
)),
(
'metallicity'
,
(
...
...
@@ -105,7 +105,7 @@ class M2005(CreationModule):
if
self
.
parameters
[
"imf"
]
==
0
:
imf
=
'salp'
elif
self
.
parameters
[
"imf"
]
==
1
:
imf
=
'
chab
'
imf
=
'
krou
'
metallicity
=
float
(
self
.
parameters
[
"metallicity"
])
with
Database
()
as
database
:
self
.
ssp
=
database
.
get_m2005
(
imf
,
metallicity
)
...
...
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