def __init__(self, structure, saxis=(0, 0, 1), prev_incar=None,
                 reciprocal_density=100, **kwargs):
        """
        Init a MPSOCSet.

        Args:
            structure (Structure): the structure must have the 'magmom' site
                property and each magnetic moment value must have 3
                components. eg:- magmom = [[0,0,2], ...]
            saxis (tuple): magnetic moment orientation
            prev_incar (Incar): Incar file from previous run.
            reciprocal_density (int): density of k-mesh by reciprocal
                                    volume (defaults to 100)
            \\*\\*kwargs: kwargs supported by MPVaspInputSet.
        """
        if not hasattr(structure[0], "magmom") and \
                not isinstance(structure[0].magmom, list):
            raise ValueError(
                "The structure must have the 'magmom' site "
                "property and each magnetic moment value must have 3 "
                "components. eg:- magmom = [0,0,2]")
        self.saxis = saxis
        super().__init__(structure, prev_incar=prev_incar,
                         reciprocal_density=reciprocal_density, **kwargs)
def __init__ ( self , structure , saxis = ( 0 , 0 , 1 ) , prev_incar = None , reciprocal_density = 100 , ** kwargs ) : if not hasattr ( structure [ 0 ] , "magmom" ) and not isinstance ( structure [ 0 ] . magmom , list ) : raise ValueError ( "The structure must have the 'magmom' site " "property and each magnetic moment value must have 3 " "components. eg:- magmom = [0,0,2]" ) self . saxis = saxis super ( ) . __init__ ( structure , prev_incar = prev_incar , reciprocal_density = reciprocal_density , ** kwargs )
Init a MPSOCSet.

        Args:
            structure (Structure): the structure must have the 'magmom' site
                property and each magnetic moment value must have 3
                components. eg:- magmom = [[0,0,2], ...]
            saxis (tuple): magnetic moment orientation
            prev_incar (Incar): Incar file from previous run.
            reciprocal_density (int): density of k-mesh by reciprocal
                                    volume (defaults to 100)
            \\*\\*kwargs: kwargs supported by MPVaspInputSet.