Skip to content

Commit bb1348b

Browse files
author
Sukhbinder Singh
committed
Fix np.inf
1 parent dc57cdd commit bb1348b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

intersect/intersect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def intersection(x1, y1, x2, y2):
9191
try:
9292
T[:, i] = np.linalg.solve(AA[:, :, i], BB[:, i])
9393
except:
94-
T[:, i] = np.Inf
94+
T[:, i] = np.inf
9595

9696
in_range = (T[0, :] >= 0) & (T[1, :] >= 0) & (
9797
T[0, :] <= 1) & (T[1, :] <= 1)

0 commit comments

Comments
 (0)