Skip to content

Commit

Permalink
Fix parameter check
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliottKasoar authored Oct 22, 2024
1 parent d8db0b0 commit 65cd5f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions janus_core/helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def results_to_info(
if struct.calc and "arch" in struct.calc.parameters:
arch = struct.calc.parameters["arch"]
struct.info["arch"] = arch
if struct.calc and "mlip_model" in struct.calc.parameters:
if struct.calc and "model" in struct.calc.parameters:
struct.info["mlip_model"] = struct.calc.parameters["model"]

for key in properties & struct.calc.results.keys():
Expand Down Expand Up @@ -476,7 +476,7 @@ def output_structs(
for image in images:
if image.calc and "arch" in image.calc.parameters:
image.info["arch"] = image.calc.parameters["arch"]
if image.calc and "mlip_model" in image.calc.parameters:
if image.calc and "model" in image.calc.parameters:
image.info["mlip_model"] = image.calc.parameters["model"]

# Add label for system
Expand Down

0 comments on commit 65cd5f1

Please sign in to comment.