fix another instance where numpy prohibits using not bounds

This commit is contained in:
jan 2022-02-28 23:43:16 -08:00
parent 2b8195ad3e
commit a4aa50d814

View File

@ -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