Skip to content

Commit

Permalink
Merge pull request #457 from jGaboardi/GH456__numpy20_compt
Browse files Browse the repository at this point in the history
fix `numpy=2.0.0` compat -- #456
  • Loading branch information
gegen07 committed Jun 20, 2024
2 parents fa782a5 + 7c06f4c commit 6ec4ec1
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 6ec4ec1

Please sign in to comment.