From d0c1b00d7e1d48832dc0796659f59152033d09fb Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 21 Apr 2025 19:06:45 -0700 Subject: [PATCH] fix some polycollection syntax --- masque/shapes/poly_collection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/masque/shapes/poly_collection.py b/masque/shapes/poly_collection.py index d7d1c95..c91c4a3 100644 --- a/masque/shapes/poly_collection.py +++ b/masque/shapes/poly_collection.py @@ -121,7 +121,7 @@ class PolyCollection(Shape): return eq_lt_masked.flat[0] return vv.shape[0] < oo.shape[0] if len(self.vertex_lists) != len(other.vertex_lists): - return len(self.vertex_lists) < len(other.vertex_lists): + return len(self.vertex_lists) < len(other.vertex_lists) if not numpy.array_equal(self.offset, other.offset): return tuple(self.offset) < tuple(other.offset) if self.repetition != other.repetition: @@ -156,8 +156,8 @@ class PolyCollection(Shape): ) for vv in self.vertex_lists] def get_bounds_single(self) -> NDArray[numpy.float64]: # TODO note shape get_bounds doesn't include repetition - mins = [numpy.min(vv, axis=0) for vv self.vertex_lists] - maxs = [numpy.max(vv, axis=0) for vv self.vertex_lists] + mins = [numpy.min(vv, axis=0) for vv in self.vertex_lists] + maxs = [numpy.max(vv, axis=0) for vv in self.vertex_lists] return numpy.vstack((self.offset + numpy.min(self.vertex_lists, axis=0), self.offset + numpy.max(self.vertex_lists, axis=0)))