Source code for pyleecan.Methods.Slot.SlotM12.check

# -*- coding: utf-8 -*-

from numpy import pi

from ....Methods.Slot.Slot import SlotCheckError


[docs]def check(self): """Check that the SlotM12 object is correct Parameters ---------- self : SlotM12 A SlotM12 object Returns ------- None """ if self.W0 < self.Wmag: raise SlotCheckError("You must have Wmag <= W0")