Skip to content

Commit 0ce6ea6

Browse files
committed
..
1 parent 81a9142 commit 0ce6ea6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/petab_test_suite/test_petab_v2_suite.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import pytest
1010
from _pytest.outcomes import Skipped
1111
from amici import (
12+
AMICI_SUCCESS,
1213
SensitivityMethod,
1314
SensitivityOrder,
1415
)
@@ -78,6 +79,10 @@ def _test_case(case, model_type, version, jax):
7879
ret = ps.simulate(problem_parameters=problem_parameters)
7980

8081
rdatas = ret[RDATAS]
82+
for rdata in rdatas:
83+
assert rdata.status == AMICI_SUCCESS, (
84+
f"Simulation failed for {rdata.id}"
85+
)
8186
chi2 = sum(rdata.chi2 for rdata in rdatas)
8287
llh = ret[LLH]
8388
simulation_df = rdatas_to_simulation_df(rdatas, ps.model, pi.petab_problem)

0 commit comments

Comments
 (0)