glue-viz / glue-qt

Other
3 stars 7 forks source link

Update `ptp` call for numpy 2 #19

Closed Carifio24 closed 2 months ago

Carifio24 commented 3 months ago

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.