fix numpy complaining about .any() / .all()
This commit is contained in:
parent
d8b60da827
commit
20be409341
@ -260,7 +260,7 @@ class Shape(PositionableImpl, LayerableImpl, DoseableImpl, Rotatable, Mirrorable
|
|||||||
for polygon in self.to_polygons():
|
for polygon in self.to_polygons():
|
||||||
# Get rid of unused gridlines (anything not within 2 lines of the polygon bounds)
|
# Get rid of unused gridlines (anything not within 2 lines of the polygon bounds)
|
||||||
bounds = polygon.get_bounds()
|
bounds = polygon.get_bounds()
|
||||||
if not bounds:
|
if bounds is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
mins, maxs = bounds
|
mins, maxs = bounds
|
||||||
|
Loading…
Reference in New Issue
Block a user