fix another instance where numpy prohibits using not bounds
This commit is contained in:
parent
2b8195ad3e
commit
a4aa50d814
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue