# check (method)¶

check(self)[source]

Check that the Machine object is correct

Parameters: self – A Machine object None MC_AbstractError – Machine is an abstract class MC_StatorNotStator – self.stator.is_stator must be True MC_RotorIsStator – self.rotor.is_stator must be False MC_BothInternal – self.rotor.is_internal and self.rotor.is_internal can’t be both True MC_BothExternal – self.rotor.is_internal and self.rotor.is_internal can’t be both False MC_RotorDontFit – The Rotor is too big to fit in the Stator MC_ShaftTooBig – The Shaft is too big to fit in the Rotor MC_ShaftTooSmall – The Shaft is too small to fit in the Rotor MC_MecAirgapError – The Stator and the rotor don’t fit because of magnet or short circuit ring
exception MC_AbstractError[source]
exception MC_StatorNotStator[source]
exception MC_RotorIsStator[source]
exception MC_BothInternal[source]
exception MC_BothExternal[source]
exception MC_RotorDontFit[source]
Raises: stator
exception MC_StatorDontFit[source]
Raises: rotor
exception MC_ShaftTooBig[source]
Raises: rotor
exception MC_ShaftTooSmall[source]
Raises: rotor
exception MC_MecAirgapError[source]