Skip to content

Commit

Permalink
crash
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Jul 10, 2024
1 parent ba988f5 commit 64d2c59
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/tests/test_swig_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,12 +562,21 @@ def test_python_exceptions(sbml_example_presimulation_module):
):
amici.runAmiciSimulation(model, solver, edata)

amici.runAmiciSimulations(
model, solver, [edata, edata], failfast=True, num_threads=1
)

# model throws, base catches, swig-exception handling is not involved
model.setParameters([nan] * model.np())
model.setTimepoints([1])
rdata = amici.runAmiciSimulation(model, solver)
assert rdata.status == amici.AMICI_FIRST_RHSFUNC_ERR

rdatas = amici.runAmiciSimulations(
model, solver, [edata, edata], failfast=True, num_threads=1
)
assert rdatas[0].status == amici.AMICI_FIRST_RHSFUNC_ERR

# model throws, base catches, swig-exception handling is involved
from amici._amici import runAmiciSimulation

Expand Down

0 comments on commit 64d2c59

Please sign in to comment.