I think that here we have a bug in the trapezium evaluation, don't we?
|
upper_wavelength = spectrum.min_wavelength + spectrum.delta_wavelength * i |
I think that there should be (i + 1) term here, otherwise for the 1st iteration the lower_wavelength and upper_wavelength are equal, aren't they?
The line should look like:
upper_wavelength = spectrum.min_wavelength + spectrum.delta_wavelength * (i + 1)
I think that here we have a bug in the trapezium evaluation, don't we?
core/cherab/core/model/plasma/bremsstrahlung.pyx
Line 77 in c47a09c
I think that there should be (i + 1) term here, otherwise for the 1st iteration the
lower_wavelengthandupper_wavelengthare equal, aren't they?The line should look like:
upper_wavelength = spectrum.min_wavelength + spectrum.delta_wavelength * (i + 1)