Commit fa48cff9 authored by Médéric Boquien's avatar Médéric Boquien

Ensure that the computation of the continuum level is correct when determining...

Ensure that the computation of the continuum level is correct when determining the equivalent width, in particular when the line width is very narrow.
parent badef309
......@@ -33,6 +33,7 @@
- An erroneous warning was displayed when using the `restframe\_parameters` module. (Médéric Boquien)
- The formula from Sawicki et al. (2012) used to compute the χ² in the presence of upper limits was not correct. This led the χ² to depend directly on the absolute value of the upper limit. The formula has been rederived and corrected. (Médéric Boquien & Denis Burgarella)
- For some reason the wavelengths of the SCUBA 450 μm filter were a factor 10 too small. (Médéric Boquien)
- Ensure that the computation of the continuum level is correct when determining the equivalent width, in particular when the line width is very narrow. (Médéric Boquien)
### Optimised
- The cache architecture has been simplified, making it somewhat faster. It speeds up the model generation by ~1%. (Médéric Boquien)
......
......@@ -144,7 +144,7 @@ class RestframeParam(SedModule):
key = (wl_line.size, line[0], 0.)
EW[line] = (flux_trapz(lumin_line[w_line], wl_line, key) /
flux_trapz(lumin_cont[w_line], wl_line, key) *
line[1] * 2.)
(wl_line[-1]-wl_line[0]))
return EW
......
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