Skip to content

Commit

Permalink
Fix singlepoint summary (stfc#306)
Browse files Browse the repository at this point in the history
* Test unique singlepoint summary inputs

* Fix saving singlepoint summary
  • Loading branch information
ElliottKasoar authored Sep 6, 2024
1 parent 9666272 commit 6f3c395
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions janus_core/cli/singlepoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ def singlepoint(
).absolute()
log = s_point.log_kwargs["filename"]

# Store only filename as filemode is not set by user
inputs = {"log": log}
# Store inputs for yaml summary
inputs = singlepoint_kwargs.copy()

# Add structure, MLIP information, and log to inputs
save_struct_calc(
Expand Down
1 change: 1 addition & 0 deletions tests/test_singlepoint_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ def test_summary(tmp_path):
assert "inputs" in sp_summary
assert "end_time" in sp_summary

assert "properties" in sp_summary["inputs"]
assert "traj" in sp_summary["inputs"]
assert "length" in sp_summary["inputs"]["traj"]
assert "struct" in sp_summary["inputs"]["traj"]
Expand Down

0 comments on commit 6f3c395

Please sign in to comment.