def __init__(self, mat_type=(- 1), type_magnetization=0, Lmag=0.95, init_dict=None, init_str=None):
    'Constructor of the class. Can be use in three ways :\n        - __init__ (arg1 = 1, arg3 = 5) every parameters have name and default values\n            for pyleecan type, -1 will call the default constructor\n        - __init__ (init_dict = d) d must be a dictionary with property names as keys\n        - __init__ (init_str = s) s must be a string\n        s is the file path to load\n\n        ndarray or list can be given for Vector and Matrix\n        object or dict can be given for pyleecan Object'
    if (init_str is not None):
        init_dict = load_init_dict(init_str)[1]
    if (init_dict is not None):
        assert (type(init_dict) is dict)
        if ('mat_type' in list(init_dict.keys())):
            mat_type = init_dict['mat_type']
        if ('type_magnetization' in list(init_dict.keys())):
            type_magnetization = init_dict['type_magnetization']
        if ('Lmag' in list(init_dict.keys())):
            Lmag = init_dict['Lmag']
    self.parent = None
    self.mat_type = mat_type
    self.type_magnetization = type_magnetization
    self.Lmag = Lmag
    self._freeze()
Constructor of the class. Can be use in three ways :
- __init__ (arg1 = 1, arg3 = 5) every parameters have name and default values
    for pyleecan type, -1 will call the default constructor
- __init__ (init_dict = d) d must be a dictionary with property names as keys
- __init__ (init_str = s) s must be a string
s is the file path to load

ndarray or list can be given for Vector and Matrix
object or dict can be given for pyleecan Object
def __init__(self, mat_type=(- 1), type_magnetization=0, Lmag=0.95, init_dict=None, init_str=None):
    'Constructor of the class. Can be use in three ways :\n        - __init__ (arg1 = 1, arg3 = 5) every parameters have name and default values\n            for pyleecan type, -1 will call the default constructor\n        - __init__ (init_dict = d) d must be a dictionary with property names as keys\n        - __init__ (init_str = s) s must be a string\n        s is the file path to load\n\n        ndarray or list can be given for Vector and Matrix\n        object or dict can be given for pyleecan Object'
    if (init_str is not None):
        init_dict = load_init_dict(init_str)[1]
    if (init_dict is not None):
        assert (type(init_dict) is dict)
        if ('mat_type' in list(init_dict.keys())):
            mat_type = init_dict['mat_type']
        if ('type_magnetization' in list(init_dict.keys())):
            type_magnetization = init_dict['type_magnetization']
        if ('Lmag' in list(init_dict.keys())):
            Lmag = init_dict['Lmag']
    self.parent = None
    self.mat_type = mat_type
    self.type_magnetization = type_magnetization
    self.Lmag = Lmag
    self._freeze()