SWPole module

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

Bases: pyleecan.GUI.Dialog.DMachineSetup.SWPole.Ui_SWPole.Ui_SWPole, PyQt5.QtWidgets.QWidget

Step to set the lamination pole (for WRSM)

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

Send a saveNeeded signal to the DMachineSetup

set_slot_type(index)[source]

Initialize self.obj with the slot corresponding to index

Parameters:
  • self (SWPole) – A SWPole object
  • index (int) – Index of the selected slot type in the list
update_slot_text(Zs)[source]

Update in_Zs and out_slot_pitch with the correct value

Parameters:
  • self (SWPole) – A SWPole object
  • Zs (int) – The current value of Zs
s_update_slot()[source]

Update the slot widget

Parameters:self (SWPole) – a SWPole object
s_change_slot(index)[source]

Signal to update the interface and show a specific page

Parameters:
  • self (SWPole) – a SWPole object
  • index (int) – Index of w_page_stack to show
s_plot()[source]

Try to plot the lamination

Parameters:self (SWPole) – A SWPole object
static check(lam)[source]

Check that the current machine have all the needed field set

Parameters:lam (Lamination) – Lamination to check
Returns:error – Error message (return None if no error)
Return type:str