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
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
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))
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