From a538b821ced87c38073ae91609950fbce653cf43 Mon Sep 17 00:00:00 2001 From: Nate MacFadden Date: Sat, 9 Nov 2024 18:06:58 -0500 Subject: [PATCH] bugfix min doesn't work nicely on arrays --- src/cytools/polytope.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cytools/polytope.py b/src/cytools/polytope.py index d2b3243..576ac50 100644 --- a/src/cytools/polytope.py +++ b/src/cytools/polytope.py @@ -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)