Beispiel #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
Beispiel #2
0
 def setUp(self):
     with open(
             os.path.join(PymatgenTest.TEST_FILES_DIR,
                          "NaCl_complete_ph_dos.json")) as f:
         self.dos = CompletePhononDos.from_dict(json.load(f))
         self.plotter = PhononDosPlotter(sigma=0.2, stack=True)
         self.plotter_nostack = PhononDosPlotter(sigma=0.2, stack=False)
Beispiel #3
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
Beispiel #4
0
 def setUp(self):
     with open(os.path.join(test_dir, "NaCl_complete_ph_dos.json"), "r") as f:
         self.dos = CompletePhononDos.from_dict(json.load(f))
         self.plotter = ThermoPlotter(self.dos, self.dos.structure)
Beispiel #5
0
 def setUp(self):
     with open(os.path.join(test_dir, "NaCl_complete_ph_dos.json"), "r") as f:
         self.dos = CompletePhononDos.from_dict(json.load(f))
         self.plotter = PhononDosPlotter(sigma=0.2, stack=True)
Beispiel #6
0
 def setUp(self):
     with open(os.path.join(test_dir, "NaCl_complete_ph_dos.json"), "r") as f:
         self.cdos = CompletePhononDos.from_dict(json.load(f))
Beispiel #7
0
 def setUp(self):
     with open(os.path.join(test_dir, "NaCl_complete_ph_dos.json"), "r") as f:
         self.dos = CompletePhononDos.from_dict(json.load(f))
         self.plotter = ThermoPlotter(self.dos, self.dos.structure)
Beispiel #8
0
 def setUp(self):
     with open(os.path.join(test_dir, "NaCl_complete_ph_dos.json"), "r") as f:
         self.dos = CompletePhononDos.from_dict(json.load(f))
         self.plotter = PhononDosPlotter(sigma=0.2, stack=True)
         self.plotter_nostack = PhononDosPlotter(sigma=0.2, stack=False)
Beispiel #9
0
 def setUp(self):
     with open(
             os.path.join(PymatgenTest.TEST_FILES_DIR,
                          "NaCl_complete_ph_dos.json")) as f:
         self.dos = CompletePhononDos.from_dict(json.load(f))
         self.plotter = ThermoPlotter(self.dos, self.dos.structure)