Skip to content

Commit

Permalink
consistently test all reference cases for the small systems
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasleitner committed Jan 24, 2025
1 parent 21e011d commit 50f5018
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/generators/dump_adcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def dump_excited_states(states: ExcitedStates, hdf5_file: h5py.Group,
"""
# ensure that the calculation converged on a nonzero result
assert states.converged
assert all(e > 1e-12 for e in states.excitation_energy)
assert all(abs(e) > 1e-12 for e in states.excitation_energy)

n_states = len(states.excitation_energy)
if dump_nstates is not None:
Expand Down
6 changes: 3 additions & 3 deletions tests/testcases.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ def _init_test_cases() -> tuple[TestCase]:
))
# CN
xyz, unit = _xyz["cn"]
ref_cases = ("gen", "cvs", "fc", "fv", "fv-cvs", "fc-fv")
ref_cases = ("gen", "cvs", "fc", "fv", "fv-cvs", "fc-fv", "fc-cvs", "fc-fv-cvs")
test_cases.append(TestCase(
name="cn", xyz=xyz, unit=unit, charge=0, multiplicity=2,
basis="sto-3g", core_orbitals=1, frozen_core=1, frozen_virtual=1,
cases=ref_cases, only_full_mode=False, restricted=False,
kinds=unrestricted_kinds
))
ref_cases = ("gen", "cvs", "fc", "fv")
ref_cases = ("gen", "cvs")
test_cases.append(TestCase(
name="cn", xyz=xyz, unit=unit, charge=0, multiplicity=2,
basis="cc-pvdz", core_orbitals=1, frozen_core=1, frozen_virtual=3,
Expand All @@ -248,7 +248,7 @@ def _init_test_cases() -> tuple[TestCase]:
basis="cc-pvdz", only_full_mode=True
))
# HF
ref_cases = ("gen", "fc", "fv")
ref_cases = ("gen", "fc", "fv", "fc-fv")
xyz, unit = _xyz["hf"]
test_cases.append(TestCase(
name="hf", xyz=xyz, unit=unit, charge=0, multiplicity=3,
Expand Down

0 comments on commit 50f5018

Please sign in to comment.