SMHoleMag module

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

Bases: pyleecan.GUI.Dialog.DMachineSetup.SMHoleMag.Ui_SMHoleMag.Ui_SMHoleMag, PyQt5.QtWidgets.QWidget

Step to set several Holes

saveNeeded
step_name = 'Slot'
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()[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
check()[source]

Check that the current machine have all the needed field set

Parameters:self (SMHoleMag) – A SMHoleMag object
Returns:error – Error message (return None if no error)
Return type:str