fix another instance where numpy prohibits using not bounds
This commit is contained in:
parent
2b8195ad3e
commit
a4aa50d814
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user