SWSlot module

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

Bases: pyleecan.GUI.Dialog.DMachineSetup.SWSlot.Gen_SWSlot.Gen_SWSlot, PyQt5.QtWidgets.QWidget

Step to set the slot with winding

saveNeeded
step_name = 'Slot'
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 (SWSlot) – A SWSlot object
  • index (int) – Index of the selected slot type in the list
set_Zs()[source]

Signal to update the value of Zs according to the spinbox

Parameters:self (SWSlot) – A SWSlot object
set_slot_pitch(Zs)[source]

Update out_slot_pitch with the correct value

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

Update the slot widget

Parameters:self (SWSlot) – A SWSlot object
s_change_slot(index)[source]

Signal to update the slot object and widget

Parameters:
  • self (SWSlot) – A SWSlot object
  • index (int) – Current index of the combobox
s_plot()[source]

Try to plot the lamination

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

Check that the current lamination have all the needed field set

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