From 7dc81aca73a6e9f3b07787be06fcff459752546c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Fr=C3=B6hlich?= Date: Fri, 25 Oct 2024 23:25:23 +0100 Subject: [PATCH] Update test_petab_benchmark.py --- tests/benchmark-models/test_petab_benchmark.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/benchmark-models/test_petab_benchmark.py b/tests/benchmark-models/test_petab_benchmark.py index 9a896b038c..bab18a1550 100644 --- a/tests/benchmark-models/test_petab_benchmark.py +++ b/tests/benchmark-models/test_petab_benchmark.py @@ -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, @@ -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(