def setUp(self): with open( os.path.join(PymatgenTest.TEST_FILES_DIR, "complete_dos.json")) as f: d = json.load(f) y = list(zip(d["densities"]["1"], d["densities"]["-1"])) self.dos = DOS(d["energies"], y, d["efermi"])
def setUp(self): with open(os.path.join(test_dir, "complete_dos.json"), "r") as f: d = json.load(f) y = list(zip(d["densities"]["1"], d["densities"]["-1"])) self.dos = DOS(d["energies"], y, d["efermi"])