def _set_winding(self, value):
    'setter of winding'
    if isinstance(value, str):
        value = load_init_dict(value)[1]
    if (isinstance(value, dict) and ('__class__' in value)):
        class_obj = import_class('pyleecan.Classes', value.get('__class__'), 'winding')
        value = class_obj(init_dict=value)
    elif ((type(value) is int) and (value == (- 1))):
        value = Winding()
    check_var('winding', value, 'Winding')
    self._winding = value
    if (self._winding is not None):
        self._winding.parent = self
setter of winding
def _set_winding(self, value):
    
    if isinstance(value, str):
        value = load_init_dict(value)[1]
    if (isinstance(value, dict) and ('__class__' in value)):
        class_obj = import_class('pyleecan.Classes', value.get('__class__'), 'winding')
        value = class_obj(init_dict=value)
    elif ((type(value) is int) and (value == (- 1))):
        value = Winding()
    check_var('winding', value, 'Winding')
    self._winding = value
    if (self._winding is not None):
        self._winding.parent = self