Skip to content

Commit b9af957

Browse files
committed
add test skip for petab v1
1 parent 91d20ad commit b9af957

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

python/sdist/amici/jax/petab.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,6 +1759,11 @@ def run_simulations(
17591759
:return:
17601760
Overall output value and condition specific results and statistics.
17611761
"""
1762+
if isinstance(problem, HybridProblem) or isinstance(problem._petab_problem, petabv1.Problem):
1763+
raise TypeError(
1764+
"run_simulations does not support PEtab v1 problems. Upgrade the problem to PEtab v2."
1765+
)
1766+
17621767
if isinstance(ret, str):
17631768
ret = ReturnValue[ret]
17641769

tests/petab_test_suite/test_petab_suite.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def test_case(case, model_type, version, jax):
5050
f"implemented: {e}"
5151
)
5252
pytest.skip(str(e))
53+
elif "run_simulations does not support PEtab v1" in str(e):
54+
pytest.skip(str(e))
5355
else:
5456
raise e
5557

@@ -97,7 +99,6 @@ def _test_case(case, model_type, version, jax):
9799
simulation_df = petab_simulate(
98100
jax_problem, steady_state_event=steady_state_event
99101
)
100-
breakpoint()
101102
simulation_df.rename(
102103
columns={petab.SIMULATION: petab.MEASUREMENT}, inplace=True
103104
)

0 commit comments

Comments
 (0)