Esempio n. 1
0
 def setUp(self):
     with open(os.path.join(test_dir, "NaCl_ph_dos.json"), "r") as f:
         self.dos = PhononDos.from_dict(json.load(f))
     with open(os.path.join(test_dir, "NaCl_complete_ph_dos.json"),
               "r") as f:
         self.structure = CompletePhononDos.from_dict(
             json.load(f)).structure
Esempio n. 2
0
 def setUp(self):
     with open(os.path.join(PymatgenTest.TEST_FILES_DIR,
                            "NaCl_ph_dos.json")) as f:
         self.dos = PhononDos.from_dict(json.load(f))
     with open(
             os.path.join(PymatgenTest.TEST_FILES_DIR,
                          "NaCl_complete_ph_dos.json")) as f:
         self.structure = CompletePhononDos.from_dict(
             json.load(f)).structure
Esempio n. 3
0
 def setUp(self):
     with open(os.path.join(test_dir, "NaCl_ph_dos.json"), "r") as f:
         self.dos = PhononDos.from_dict(json.load(f))
Esempio n. 4
0
 def setUp(self):
     with open(os.path.join(test_dir, "NaCl_ph_dos.json"), "r") as f:
         self.dos = PhononDos.from_dict(json.load(f))
     with open(os.path.join(test_dir, "NaCl_complete_ph_dos.json"), "r") as f:
         self.structure = CompletePhononDos.from_dict(json.load(f)).structure
Esempio n. 5
0
 def setUp(self):
     with open(os.path.join(test_dir, "NaCl_ph_dos.json"), "r") as f:
         self.dos = PhononDos.from_dict(json.load(f))