fix another instance where numpy prohibits using `not bounds`

nolock
jan 2 years ago
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…
Cancel
Save