pyleecan.GUI.Dialog.DMachineSetup.SMHoleMag.SMHoleMag module

class SMHoleMag(machine, material_dict, is_stator=False)[source]

Bases: Ui_SMHoleMag, QWidget

Step to set several Holes

saveNeeded
step_name = 'Hole'
emit_save()[source]

Send a saveNeeded signal to the DMachineSetup

set_hole_pitch(Zh)[source]

Update out_hole_pitch with the correct value

Parameters:
  • self (SMHoleMag) – A SMHoleMag object

  • Zh (int) – The current value of Zh

s_add(hole=False)[source]

Signal to add a new hole

Parameters:
  • self (SMHoleMag) – a SMHoleMag object

  • hole (HoleMag) – hole to initialize in the new page if None create a new empty HoleM50

s_remove(index)[source]

Signal to remove the last hole

Parameters:

self (SMHoleMag) – a SMHoleMag object

s_plot()[source]

Try to plot the lamination

Parameters:

self (SMHoleMag) – a SMHoleMag object

static check(lamination)[source]

Check that the current machine have all the needed field set

Parameters:

lamination (Lamination) – Lamination to check

Returns:

error – Error message (return None if no error)

Return type:

str

staticMetaObject = <PySide2.QtCore.QMetaObject object>