SMSlot module

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

Bases: pyleecan.GUI.Dialog.DMachineSetup.SMSlot.Ui_SMSlot.Ui_SMSlot, PySide2.QtWidgets.QWidget

Step to set the slot with winding

saveNeeded
step_name = 'Magnet'
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 (SMSlot) – A SMSlot object

  • index (int) – Index of the selected slot type in the list

set_slot_pitch(Zs)[source]

Update out_slot_pitch with the correct value

Parameters
  • self (SMSlot) – A SMSlot object

  • Zs (int) – The current value of Zs

s_set_type_magnetization(index)[source]

Signal to update the value of type_magnetization according to the combobox

Parameters
  • self (SMagnet) – A SMagnet object

  • index (int) – Current index of the combobox

s_update_slot()[source]

Update the slot widget

Parameters

self (SMSlot) – A SMSlot object

s_change_slot(index)[source]

Signal to update the slot object and widget

Parameters
  • self (SMSlot) – A SMSlot object

  • index (int) – Current index of the combobox

s_plot()[source]

Try to plot the lamination

Parameters

self (SMSlot) – A SMSlot object

staticMetaObject = <PySide2.QtCore.QMetaObject object>
static check(lam)[source]

Check that the current lamination have all the needed field set

Parameters

lam (LamSlotMag) – Lamination to check

Returns

error – Error message (return None if no error)

Return type

str