Hello, it looks like numpy has retired the ndarray.ptp() method and instead telling users to call np.ptp(array).
This change causes issues when running aesop with numpy>=2.0 (raises AttributeError: SpectralAxis instance has no attribute 'ptp'.)
Replacing wavelength.ptp().value with np.ptp(wavelength).value in lines like below seems to solve the issue.
|
spectrum.wavelength.ptp().value/4]) |
|
(spectrum.wavelength.ptp().value/8, |
|
spectrum.wavelength.ptp().value/2)])[0] |
Hello, it looks like numpy has retired the
ndarray.ptp()method and instead telling users to callnp.ptp(array).This change causes issues when running aesop with
numpy>=2.0 (raisesAttributeError: SpectralAxis instance has no attribute 'ptp'.)Replacing
wavelength.ptp().valuewithnp.ptp(wavelength).valuein lines like below seems to solve the issue.aesop/aesop/masking.py
Line 36 in f2aa5a2
aesop/aesop/masking.py
Lines 45 to 46 in f2aa5a2