def test_get_energy(self):
     m = SymmetryModel()
     s2 = Structure.from_file(os.path.join(test_dir, "Li2O.cif"))
     self.assertAlmostEqual(m.get_energy(s2), -225)
 def test_get_energy(self):
     m = SymmetryModel()
     s2 = Structure.from_file(os.path.join(PymatgenTest.TEST_FILES_DIR, "Li2O.cif"))
     self.assertAlmostEqual(m.get_energy(s2), -225)
Exemple #3
0
 def test_get_energy(self):
     m = SymmetryModel()
     s2 = Structure.from_file(os.path.join(test_dir, "Li2O.cif"))
     self.assertAlmostEqual(m.get_energy(s2), -225)
 def test_get_energy(self):
     m = SymmetryModel()
     s2 = read_structure(os.path.join(test_dir, "Li2O.cif"))
     self.assertEqual(m.get_energy(s2), -225)
Exemple #5
0
 def test_get_energy(self):
     m = SymmetryModel()
     s2 = read_structure(os.path.join(test_dir, "Li2O.cif"))
     self.assertEqual(m.get_energy(s2), -225)