def _load_holder_canvas(self, holes): if holes: canvas = IrradiationCanvas() load_holder_canvas(canvas, holes) self.canvas = canvas
def _load_holder_canvas(self, holder): geom = holder.geometry if geom: canvas = IrradiationCanvas() load_holder_canvas(canvas, geom) self.canvas = canvas
def _make_canvas(self, level): if level.holder: holes = irradiation_geometry_holes(level.holder) canvas = IrradiationCanvas() load_holder_canvas(canvas, holes) return canvas
def _make_canvas(self, level): if level.holder: geom = level.holder.geometry canvas = IrradiationCanvas() load_holder_canvas(canvas, geom) return canvas