get_lam_by_label (method)¶
-
get_lam_by_label
(self, label)[source]¶ Returns the lamination by its labels. Accepted labels are ‘Stator_X’ and ‘Rotor_X’ with X the number of the lamination starting with 0. For convienence also ‘Stator’ or ‘Rotor’ are allowed here to get respective first stator or rotor lamination.
- Parameters
self (Machine) – Machine object
label (string) – label of the lamination to return
- Returns
lam – Lamination with the given label
- Return type