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
08d1ed49
Commit
08d1ed49
authored
Feb 19, 2014
by
Médéric Boquien
Browse files
Remove the special case of nebular lines that did not work anyway.
parent
89d1d4b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
pcigale/creation_modules/dustatt_calzleit.py
View file @
08d1ed49
...
...
@@ -330,20 +330,6 @@ class CalzLeit(CreationModule):
else
:
attenuation_old
=
0
# Attenuation of spectral lines
if
young_contrib
in
sed
.
lines
:
line_attenuation
=
a_vs_ebv
(
sed
.
lines
[
young_contrib
][
0
],
uv_bump_wavelength
,
uv_bump_width
,
uv_bump_amplitude
,
powerlaw_slope
)
sed
.
lines
[
young_contrib
][
1
]
*=
10
**
(
ebvs_young
*
line_attenuation
/
-
2.5
)
if
old_contrib
in
sed
.
lines
:
line_attenuation
=
a_vs_ebv
(
sed
.
lines
[
old_contrib
][
0
],
uv_bump_wavelength
,
uv_bump_width
,
uv_bump_amplitude
,
powerlaw_slope
)
sed
.
lines
[
old_contrib
][
1
]
*=
10
**
(
ebvs_old
*
line_attenuation
/
-
2.5
)
# Total attenuation (we don't take into account the energy attenuated
# in the spectral lines)
sed
.
add_info
(
"attenuation"
+
self
.
postfix
,
...
...
pcigale/creation_modules/dustatt_powerlaw.py
View file @
08d1ed49
...
...
@@ -252,20 +252,6 @@ class PowerLawAtt(CreationModule):
else
:
attenuation_old
=
0
# Attenuation of spectral lines
if
young_contrib
in
sed
.
lines
:
line_attenuation
=
alambda_av
(
sed
.
lines
[
young_contrib
][
0
],
powerlaw_slope
,
uv_bump_wavelength
,
uv_bump_width
,
uv_bump_amplitude
)
sed
.
lines
[
young_contrib
][
1
]
*=
10
**
(
av_young
*
line_attenuation
/
-
2.5
)
if
old_contrib
in
sed
.
lines
:
line_attenuation
=
alambda_av
(
sed
.
lines
[
old_contrib
][
0
],
powerlaw_slope
,
uv_bump_wavelength
,
uv_bump_width
,
uv_bump_amplitude
)
sed
.
lines
[
old_contrib
][
1
]
*=
10
**
(
av_old
*
line_attenuation
/
-
2.5
)
# Total attenuation (we don't take into account the energy attenuated
# in the spectral lines)
sed
.
add_info
(
"attenuation"
+
self
.
postfix
,
...
...
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