pyleecan.Methods.Machine.Machine.get_lam_by_label module

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 convenience also ‘Stator’ or ‘Rotor’ are allowed here to get respective first stator or rotor lamination.

  • self (Machine) – Machine object

  • label (string) – label of the lamination to return


lam – Lamination with the given label

Return type:


exception LabelInputError[source]

Bases: Exception