Skip to content

Commit

Permalink
FIX: ptp was removed from the ndarray class in NumPy 2.0. Use np.pt…
Browse files Browse the repository at this point in the history
…p(arr, ...) instead.
  • Loading branch information
skoudoro committed Jun 25, 2024
1 parent 300b801 commit 1975a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fury/colormap.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def rgb2hsv(rgb):
out_v = rgb.max(-1)

# -- S channel
delta = rgb.ptp(-1)
delta = np.ptp(rgb, -1)
# Ignore warning for zero divided by zero
old_settings = np.seterr(invalid="ignore")
out_s = delta / out_v
Expand Down

0 comments on commit 1975a34

Please sign in to comment.