From 37976c70d88ca4fbadefb7e3ccaf604bdcb64919 Mon Sep 17 00:00:00 2001 From: Francois Lanusse Date: Sat, 28 Jun 2025 02:36:37 +0200 Subject: [PATCH] fixed tolerance --- tests/conftest.py | 2 +- tests/test_against_fpm.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index c3d5ac7..0e74eab 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -44,7 +44,7 @@ def simulation_config(request): return request.param -@pytest.fixture(scope="session", params=[0.1, 0.5, 0.8]) +@pytest.fixture(scope="session", params=[0.1, 0.2]) def lpt_scale_factor(request): return request.param diff --git a/tests/test_against_fpm.py b/tests/test_against_fpm.py index 1530733..c869b87 100644 --- a/tests/test_against_fpm.py +++ b/tests/test_against_fpm.py @@ -11,8 +11,8 @@ from jaxpm.utils import power_spectrum _TOLERANCE = 1e-4 _PM_TOLERANCE = 1e-3 -_FIELD_RTOL = 1e-2 -_FIELD_ATOL = 1e-1 +_FIELD_RTOL = 1e-4 +_FIELD_ATOL = 1e-3 @pytest.mark.single_device