From a4aa50d814f1ae96f3b738c453aec4274d6cb44f Mon Sep 17 00:00:00 2001 From: jan Date: Mon, 28 Feb 2022 23:43:16 -0800 Subject: [PATCH] fix another instance where numpy prohibits using `not bounds` --- masque/shapes/shape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/shapes/shape.py b/masque/shapes/shape.py index 2a106fd..a188ef5 100644 --- a/masque/shapes/shape.py +++ b/masque/shapes/shape.py @@ -123,7 +123,7 @@ class Shape(PositionableImpl, LayerableImpl, DoseableImpl, Rotatable, Mirrorable polygon_contours = [] for polygon in self.to_polygons(): bounds = polygon.get_bounds() - if not bounds: + if bounds is None: continue mins, maxs = bounds