In numpy 2, the ptp method has been removed from ndarray (see the relevant part of the numpy 2 migration guide here). However, np.ptp has been retained from 1.x, so this PR updates our method calls to use np.ptp for compatibility with both major versions.
In numpy 2, the
ptp
method has been removed fromndarray
(see the relevant part of the numpy 2 migration guide here). However,np.ptp
has been retained from 1.x, so this PR updates our method calls to usenp.ptp
for compatibility with both major versions.