Skip to content

Commit

Permalink
np.NINF is deprecated in numpy 2.0. Use -np.inf instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
shachafl committed Oct 11, 2024
1 parent eb98f2a commit 20f15d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starfish/core/spots/AssignTargets/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _assign(
else:
warnings.warn(
"AssignTargets will require 3D masks in the future.", DeprecationWarning)
z_min, z_max = np.NINF, np.inf
z_min, z_max = -np.inf, np.inf
y_min, y_max = float(mask.y.min()), float(mask.y.max())
x_min, x_max = float(mask.x.min()), float(mask.x.max())

Expand Down

0 comments on commit 20f15d0

Please sign in to comment.