-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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.
Line 36 in f2aa5a2
| spectrum.wavelength.ptp().value/4]) |
Lines 45 to 46 in f2aa5a2
| (spectrum.wavelength.ptp().value/8, | |
| spectrum.wavelength.ptp().value/2)])[0] |
Metadata
Metadata
Assignees
Labels
No labels