Skip to content

Commit

Permalink
Update test_petab_benchmark.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FFroehlich committed Oct 25, 2024
1 parent 8b9c10a commit 7dc81ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/benchmark-models/test_petab_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ def test_jax_llh(benchmark_problem):
problem_id, petab_problem, amici_model = benchmark_problem

amici_solver = amici_model.getSolver()
amici_solver.setAbsoluteTolerance(1e-8)
amici_solver.setRelativeTolerance(1e-8)
amici_solver.setMaxSteps(10_000)

llh_amici = simulate_petab(
petab_problem=petab_problem,
Expand Down Expand Up @@ -325,8 +328,8 @@ def test_nominal_parameters_llh(benchmark_problem):
pytest.skip("Excluded from log-likelihood check.")

amici_solver = amici_model.getSolver()
amici_solver.setAbsoluteTolerance(settings[problem_id].atol_sim)
amici_solver.setRelativeTolerance(settings[problem_id].rtol_sim)
amici_solver.setAbsoluteTolerance(1e-8)
amici_solver.setRelativeTolerance(1e-8)
amici_solver.setMaxSteps(10_000)
if problem_id in ("Brannmark_JBC2010", "Isensee_JCB2018"):
amici_model.setSteadyStateSensitivityMode(
Expand Down

0 comments on commit 7dc81ac

Please sign in to comment.