def test_TURBOMOLE_RHF_ccpVTZ(self): test_dir = 'TURBOMOLE/RHF/cc-pVTZ/' with open(self.base_dir + test_dir + self.molden_file, "r") as f: turbomole = molden2qmc.Turbomole(f, qmcpack_normalization=True) turbomole.qmcpack() res = os.system('h5diff -d 0.000001 Mol.orbs.h5 ' + self.base_dir + test_dir + 'Mol.orbs.h5') os.remove("Mol.orbs.h5") self.assertTrue(res == 0)
def test_RHF_SVP(self): test_dir = 'RHF/SVP/' with open(self.base_dir + test_dir + self.molden_file, "r") as f: turbomole = molden2qmc.Turbomole(f) turbomole.gwfn() self.assertTrue( filecmp.cmp(self.base_dir + test_dir + 'gwfn.data', 'gwfn.data')) with open('test/N4/ORCA/RHF/SVP_Turbomole/N4.molden.input', "r") as f: orca = molden2qmc.Orca(f) self.assertTrue( np.allclose(mo_matrix(turbomole), mo_matrix(orca), atol=0.0001))
def test_UHF_SVP(self): test_dir = 'UHF/SVP/' with open(self.base_dir + test_dir + self.molden_file, "r") as f: turbomole = molden2qmc.Turbomole(f).gwfn() self.assertTrue( filecmp.cmp(self.base_dir + test_dir + 'gwfn.data', 'gwfn.data'))