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 = []
|
polygon_contours = []
|
||||||
for polygon in self.to_polygons():
|
for polygon in self.to_polygons():
|
||||||
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