Skip to content

Commit

Permalink
From guiqwt: fixed NumPy deprecation warning (np.bool)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Oct 3, 2023
1 parent 68a44c4 commit 80429c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plotpy/items/image/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def mask_rectangular_area(
if inside:
self.data[iy0:iy1, ix0:ix1] = np.ma.masked
else:
indexes = np.ones(self.data.shape, dtype=np.bool_)
indexes = np.ones(self.data.shape, dtype=bool)
indexes[iy0:iy1, ix0:ix1] = False
self.data[indexes] = np.ma.masked
if trace:
Expand Down

0 comments on commit 80429c1

Please sign in to comment.