From e022d1a888f83d3bd7a83fa653f70d653b21f703 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Tue, 19 Dec 2023 08:15:38 +0100 Subject: [PATCH] tol --- python/tests/test_preequilibration.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/python/tests/test_preequilibration.py b/python/tests/test_preequilibration.py index 0c92a7190a..be447b0c54 100644 --- a/python/tests/test_preequilibration.py +++ b/python/tests/test_preequilibration.py @@ -6,7 +6,7 @@ import numpy as np import pytest from amici.debugging import get_model_for_preeq -from numpy.testing import assert_allclose +from numpy.testing import assert_allclose, assert_equal from test_pysb import get_data @@ -651,17 +651,14 @@ def test_get_model_for_preeq(preeq_fixture): amici.SteadyStateSensitivityMode.integrationOnly ) model_preeq = get_model_for_preeq(model, edata) + # the exactly same settings are used, so results should match exactly rdata1 = amici.runAmiciSimulation(model_preeq, solver) rdata2 = amici.runAmiciSimulation(model, solver, edata_preeq) - assert_allclose( + assert_equal( rdata1.x, rdata2.x, - atol=solver.getAbsoluteTolerance(), - rtol=solver.getRelativeTolerance(), ) - assert_allclose( + assert_equal( rdata1.sx, rdata2.sx, - atol=solver.getAbsoluteTolerance(), - rtol=solver.getRelativeTolerance(), )