Skip to content

Commit

Permalink
Capture failed compu step at psi4 test
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Oct 29, 2024
1 parent 5f9a377 commit 12082c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_psi4parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,16 @@ def test_ecp_basis(parser):
assert method[5].electronic.method == 'RHF'

calc = archive.run[0].calculation
assert len(calc) == 5
assert len(calc) in (5, 6)
assert calc[3].energy.total.value.magnitude == approx(-1.29372859e-15)
assert calc[4].scf_iteration[1].energy.total.value.magnitude == approx(
-3.00651252e-14
)
if len(calc) == 6: # cover failed calculation step
assert calc[-1].calculations_ref is None
assert calc[-1].method_ref == archive.run[0].method[5]
assert calc[-1].system_ref == archive.run[0].system[5]
# TODO: add check for basis set to really identify the failed step


def test_dft(parser):
Expand Down

0 comments on commit 12082c8

Please sign in to comment.