Skip to content

Commit

Permalink
Merge pull request #574 from materialsproject/parse_additional_json-i…
Browse files Browse the repository at this point in the history
…gnore-FW

`parse_additional_json()` ignore `FW.json.gz` in output directories
  • Loading branch information
janosh authored Oct 18, 2023
2 parents 4efc6cb + c86d47f commit 5bf473a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/atomate2/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ def parse_additional_json(dir_name: Path) -> dict[str, Any]:
additional_json = {}
for filename in dir_name.glob("*.json*"):
key = filename.name.split(".")[0]
if key not in ("custodian", "transformations"):
# ignore FW.json(.gz) so jobflow doesn't try to parse prev_vasp_dir
# OutputReferences was causing atomate2 MP workflows to fail with ValueError:
# Could not resolve reference 7f5a7f14-464c-4a5b-85f9-8d11b595be3b not in store
# or cache contact @janosh in case of questions
if key not in ("custodian", "transformations", "FW"):
additional_json[key] = loadfn(filename, cls=None)
return additional_json
Binary file not shown.

0 comments on commit 5bf473a

Please sign in to comment.