Source code for pyleecan.Methods.Slot.HoleM51.has_magnet

[docs]def has_magnet(self): """Return if the Hole has magnets Parameters ---------- self : HoleM51 A HoleM51 object Returns ------- has_magnet : bool True if the magnets are not None """ return ( self.magnet_0 is not None or self.magnet_1 is not None or self.magnet_2 is not None )