Skip to content

Commit

Permalink
Fix how we access charges
Browse files Browse the repository at this point in the history
  • Loading branch information
WardLT committed May 23, 2024
1 parent 1ee2c72 commit 517c568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions component-tests/cp2k/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def test_function(strc: MOFRecord, cp2k_invocation: str, steps: int) -> tuple[fl
runtime, (atoms, run_path) = future.result()

# Get the strain
charges = compute_partial_charges(run_path)
charges = compute_partial_charges(run_path).arrays['q']
# Store the result
with open('runtimes.json', 'a') as fp:
print(json.dumps({
Expand All @@ -176,6 +176,6 @@ def test_function(strc: MOFRecord, cp2k_invocation: str, steps: int) -> tuple[fl
'steps': args.steps,
'mof': mof.name,
'runtime': runtime,
'charges': charges,
'charges': charges.tolist(),
'strc': write_to_string(atoms, 'vasp')
}), file=fp)

0 comments on commit 517c568

Please sign in to comment.