예제 #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
예제 #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
예제 #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))
예제 #4
0
파일: test_dos.py 프로젝트: albalu/pymatgen
 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
예제 #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))