def test_MOLPRO_RHF_TZVP(self): test_dir = 'MOLPRO/RHF/TZVP/' with open(self.base_dir + test_dir + self.molden_file, "r") as f: molpro = molden2qmc.Molpro(f, qmcpack_normalization=True) molpro.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_QZVP(self): test_dir = 'RHF/QZVP/' with open(self.base_dir + test_dir + self.molden_file, "r") as f: molpro = molden2qmc.Molpro(f) molpro.gwfn() self.assertTrue( filecmp.cmp(self.base_dir + test_dir + 'gwfn.data', 'gwfn.data')) with open('test/N4/ORCA/RHF/QZVP/N4.molden.input', "r") as f: orca = molden2qmc.Orca(f) self.assertTrue( np.allclose(mo_matrix(molpro), mo_matrix(orca), atol=0.01))
def test_UHF_SVP(self): test_dir = 'UHF/SVP/' with open(self.base_dir + test_dir + self.molden_file, "r") as f: molden2qmc.Molpro(f).gwfn() self.assertTrue( filecmp.cmp(self.base_dir + test_dir + 'gwfn.data', 'gwfn.data'))