def __init__(self, spin_mode="polarized", smearing="fermi_dirac:0.1 eV",
                 algorithm=None, nband=None, fband=None, charge=0.0, comment=None):  # occupancies=None,
        """
        Constructor for Electrons object.

        Args:
            comment: String comment for Electrons
            charge: Total charge of the system. Default is 0.
        """
        super().__init__()

        self.comment = comment
        self.smearing = Smearing.as_smearing(smearing)
        self.spin_mode = SpinMode.as_spinmode(spin_mode)
        self.nband = nband
        self.fband = fband
        self.charge = charge
        self.algorithm = algorithm
def __init__ ( self , spin_mode = "polarized" , smearing = "fermi_dirac:0.1 eV" , algorithm = None , nband = None , fband = None , charge = 0.0 , comment = None ) : super ( ) . __init__ ( ) self . comment = comment self . smearing = Smearing . as_smearing ( smearing ) self . spin_mode = SpinMode . as_spinmode ( spin_mode ) self . nband = nband self . fband = fband self . charge = charge self . algorithm = algorithm
Constructor for Electrons object.

        Args:
            comment: String comment for Electrons
            charge: Total charge of the system. Default is 0.