From 20be40934183b3de4d0e91b5257fe0cff95634d8 Mon Sep 17 00:00:00 2001 From: jan Date: Mon, 28 Feb 2022 23:03:23 -0800 Subject: [PATCH] fix numpy complaining about .any() / .all() --- 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 874734b..2a106fd 100644 --- a/masque/shapes/shape.py +++ b/masque/shapes/shape.py @@ -260,7 +260,7 @@ class Shape(PositionableImpl, LayerableImpl, DoseableImpl, Rotatable, Mirrorable for polygon in self.to_polygons(): # Get rid of unused gridlines (anything not within 2 lines of the polygon bounds) bounds = polygon.get_bounds() - if not bounds: + if bounds is None: continue mins, maxs = bounds