Skip to content

Commit 6ec4ec1

Browse files
authored
Merge pull request #457 from jGaboardi/GH456__numpy20_compt
fix `numpy=2.0.0` compat -- #456
2 parents fa782a5 + 7c06f4c commit 6ec4ec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spopt/region/maxp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def _check_move(
562562
lost_distance = distance_matrix[poa, rm].sum()
563563
potential_move = None
564564

565-
min_added_distance = np.Inf
565+
min_added_distance = np.inf
566566
for poan in poa_neighbor:
567567
recipient_region = labels[poan]
568568
if donor_region != recipient_region:

0 commit comments

Comments
 (0)