def __str__(self):
    'Convert this object in a readeable string (for print)'
    Magnet_str = ''
    if (self.parent is None):
        Magnet_str += ('parent = None ' + linesep)
    else:
        Magnet_str += ((('parent = ' + str(type(self.parent))) + ' object') + linesep)
    if (self.mat_type is not None):
        tmp = self.mat_type.__str__().replace(linesep, (linesep + '\t')).rstrip('\t')
        Magnet_str += ('mat_type = ' + tmp)
    else:
        Magnet_str += (('mat_type = None' + linesep) + linesep)
    Magnet_str += (('type_magnetization = ' + str(self.type_magnetization)) + linesep)
    Magnet_str += (('Lmag = ' + str(self.Lmag)) + linesep)
    return Magnet_str
Convert this object in a readeable string (for print)
def __str__(self):
    
    Magnet_str = 
    if (self.parent is None):
        Magnet_str += ('parent = None ' + linesep)
    else:
        Magnet_str += ((('parent = ' + str(type(self.parent))) + ' object') + linesep)
    if (self.mat_type is not None):
        tmp = self.mat_type.__str__().replace(linesep, (linesep + '\t')).rstrip('\t')
        Magnet_str += ('mat_type = ' + tmp)
    else:
        Magnet_str += (('mat_type = None' + linesep) + linesep)
    Magnet_str += (('type_magnetization = ' + str(self.type_magnetization)) + linesep)
    Magnet_str += (('Lmag = ' + str(self.Lmag)) + linesep)
    return Magnet_str