code: def get_nonmagnetic_structure(self, make_primitive=True):
          
  
          structure = self.structure.copy()
          structure.remove_site_property("magmom")
  
          if make_primitive:
              structure = structure.get_primitive_structure()
  
          return structure
docs: Returns a Structure without magnetic moments defined.
          :param make_primitive (bool): Return a primitive
          structure, defaults to True.
          :return: Structure