Skip to content

Commit d659066

Browse files
authored
Use JSON conversion for ASE atoms (#20)
1 parent ab22b71 commit d659066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quantum_espresso_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def write_input(input_dict, working_directory="."):
3131
def collect_output(working_directory="."):
3232
output = parse_pw(os.path.join(working_directory, "pwscf.xml"))
3333
return {
34-
"structure": output["ase_structure"].todict(),
34+
"structure": atoms_to_json_dict(atoms=output["ase_structure"]),
3535
"energy": output["energy"],
3636
"volume": output["ase_structure"].get_volume(),
3737
}

0 commit comments

Comments
 (0)