Skip to content

Commit 9ced9cc

Browse files
committed
change numpy Inf to inf for compatibility with numpy2
1 parent a50d8ee commit 9ced9cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgraph/PGraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def closest(self, coord):
472472
473473
:seealso: :meth:`metric`
474474
"""
475-
min_dist = np.Inf
475+
min_dist = np.inf
476476
min_which = None
477477

478478
for vertex in self:

0 commit comments

Comments
 (0)