Commit 08d1ed49 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Remove the special case of nebular lines that did not work anyway.

parent 89d1d4b0
......@@ -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,
......
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment