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 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