Skip to content

Commit

Permalink
Merge pull request #864 from materialsproject/fix-fw-json-uuid-resolv…
Browse files Browse the repository at this point in the history
…e-ref

`_parse_additional_json` ignore `FW.json(.gz)`
  • Loading branch information
janosh committed Oct 17, 2023
2 parents 8184d2d + 9c41d8e commit 361214e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion emmet-core/emmet/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,11 @@ 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

Expand Down

0 comments on commit 361214e

Please sign in to comment.