Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
min doesn't work nicely on arrays
  • Loading branch information
natemacfadden committed Nov 9, 2024
1 parent da4fef0 commit a538b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cytools/polytope.py
Original file line number Diff line number Diff line change
Expand Up @@ -3714,7 +3714,7 @@ def poly_v_to_h(pts: ArrayLike, backend: str) -> (ArrayLike, None):
if dim == 1:
# qhull cannot handle 1-dimensional polytopes
poly = None
ineqs = np.array([[1, -min(pts)], [-1, max(pts)]])
ineqs = np.array([[1, -np.min(pts)], [-1, np.max(pts)]])

else:
poly = ConvexHull(pts)
Expand Down

0 comments on commit a538b82

Please sign in to comment.