Skip to content

Commit

Permalink
fix numpy 20 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi committed Jun 19, 2024
1 parent fa782a5 commit 7c06f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spopt/region/maxp.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def _check_move(
lost_distance = distance_matrix[poa, rm].sum()
potential_move = None

min_added_distance = np.Inf
min_added_distance = np.inf
for poan in poa_neighbor:
recipient_region = labels[poan]
if donor_region != recipient_region:
Expand Down

0 comments on commit 7c06f4c

Please sign in to comment.