예제 #1
0
 def test_parse_tddft(self):
     nwo = NwOutput(os.path.join(test_dir, "phen_tddft.log"))
     roots = nwo.parse_tddft()
     self.assertEqual(roots["singlet"].shape, (20, 2))
     self.assertAlmostEqual(roots["singlet"][0, 0], 3.9291)
     self.assertAlmostEqual(roots["singlet"][0, 1], 0.0)
     self.assertAlmostEqual(roots["singlet"][1, 1], 0.00177)
예제 #2
0
 def test_parse_tddft(self):
     nwo = NwOutput(os.path.join(test_dir, "phen_tddft.log"))
     roots = nwo.parse_tddft()
     self.assertEqual(len(roots["singlet"]), 20)
     self.assertAlmostEqual(roots["singlet"][0]["energy"], 3.9291)
     self.assertAlmostEqual(roots["singlet"][0]["osc_strength"], 0.0)
     self.assertAlmostEqual(roots["singlet"][1]["osc_strength"], 0.00177)
예제 #3
0
 def test_parse_tddft(self):
     nwo = NwOutput(os.path.join(test_dir, "phen_tddft.log"))
     roots = nwo.parse_tddft()
     self.assertEqual(len(roots["singlet"]), 20)
     self.assertAlmostEqual(roots["singlet"][0]["energy"], 3.9291)
     self.assertAlmostEqual(roots["singlet"][0]["osc_strength"], 0.0)
     self.assertAlmostEqual(roots["singlet"][1]["osc_strength"], 0.00177)