Source code for pyleecan.Methods.Slot.Slot19.check
from ....Methods.Slot.Slot import SlotCheckError
from ....Methods.Slot.Slot19 import *
[docs]def check(self):
"""Check that the Slot19 object is correct
Parameters
----------
self : Slot19
A Slot19 object
Returns
-------
None
Raises
-------
S19_H2CheckError
H1 must be > 0
S19_W1CheckError
W1 must be > 0
"""
if self.W1 < 0:
raise S19_W1CheckError("W1 must be larger than zero")