Skip to content

Commit

Permalink
np.sometrue -> np.any
Browse files Browse the repository at this point in the history
For NumPy 2.0 compatibility.
  • Loading branch information
nschloe authored and eoyilmaz committed Oct 14, 2024
1 parent 22f6178 commit ab8e33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DisplayCAL/wxenhancedplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,7 @@ def UpdatePointLabel(self, mDataDict):
"""
if self.last_PointLabel is not None:
# compare pointXY
if np.sometrue(
if np.any(
mDataDict["pointXY"] != self.last_PointLabel["pointXY"]
):
# closest changed
Expand Down

0 comments on commit ab8e33b

Please sign in to comment.