コード例 #1
0
 def test_new_with_decorators(self):
     """Testing AbinitInput.new_with_decorators."""
     spinor_deco = ideco.SpinDecorator("spinor")
     smearing_deco = ideco.SmearingDecorator("nosmearing")
     new_inp = self.si_ebands.new_with_decorators(spinor_deco)
     new_inp = self.si_ebands.new_with_decorators(
         [spinor_deco, smearing_deco])
コード例 #2
0
    def test_smearing_decorator(self):
        """Testing electronic smearing decorator."""
        smearing_deco = ideco.SmearingDecorator("fermi_dirac:0.1 eV")
        self.assertMSONable(smearing_deco)

        new_inp = smearing_deco(self.si_ebands)
        self.validate_inp(new_inp)
コード例 #3
0
ファイル: test_decorators.py プロジェクト: gmrigna/abipy
    def test_smearing_decorator(self):
        """Testing electronic smearing decorator."""
        smearing_deco = ideco.SmearingDecorator("nosmearing")
        self.assertPMGSONable(smearing_deco)

        new_inp = smearing_deco(self.si_ebands)
        self.validate_inp(new_inp)