def test_to_from_dict(self): d = self.potcar.to_dict potcar = Potcar.from_dict(d) self.assertEqual(potcar.symbols, ["Fe", "P", "O"])
def run_task(self, fw_spec): Incar.from_dict(fw_spec['vasp']['incar']).write_file('INCAR') Poscar.from_dict(fw_spec['vasp']['poscar']).write_file('POSCAR') Potcar.from_dict(fw_spec['vasp']['potcar']).write_file('POTCAR') Kpoints.from_dict(fw_spec['vasp']['kpoints']).write_file('KPOINTS')
def test_to_from_dict(self): d = self.potcar.to_dict potcar = Potcar.from_dict(d) self.assertEqual(potcar.symbols, ["Fe", "P", "O"])
def run_task(self, fw_spec): Incar.from_dict(fw_spec['vasp']['incar']).write_file('INCAR') Poscar.from_dict(fw_spec['vasp']['poscar']).write_file('POSCAR') Potcar.from_dict(fw_spec['vasp']['potcar']).write_file('POTCAR') Kpoints.from_dict(fw_spec['vasp']['kpoints']).write_file('KPOINTS')