Skip to content

Mcs 28jun

Martin Shepherd requested to merge mcs_28jun into master

Renamed Spectrum.get_lambda to Spectrum.subspec.

Updated the docstring of the Spectrum class.

Documented Spectrum functions: subspec(), mean(), sum(), truncate(), mask_region(), rebin(), integrate(), get_step(), get_start(), get_end(), get_range().

Three identical blocks of code in spectrum.py have been moved into an internal function called _wavelengths_to_slice().

The part of Spectrum.integrate() that makes the units of the wavelength axis consistent with the units of the fluxes, has been extended to recognize nm and um wavelength units, in addition to the original angstrom units.

Merge request reports