Source code for pyleecan.Methods.Slot.HoleUD.remove_magnet

# -*- coding: utf-8 -*-


[docs]def remove_magnet(self): """Remove the magnet (set to None) of the Hole Parameters ---------- self : HoleUD a HoleUD object """ if self.magnet_dict is None: self.magnet_dict = dict() for key in self.magnet_dict.keys(): self.magnet_dict[key] = None