From 5723fa1ec25ec9647e57f7db9d8151d4bef0fd57 Mon Sep 17 00:00:00 2001 From: Tom Body Date: Mon, 4 Dec 2023 09:23:55 -0500 Subject: [PATCH] Relax regression rtol from 1E-8 to 1E-6 --- tests/test_regression_against_cases.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_regression_against_cases.py b/tests/test_regression_against_cases.py index 1fad8ea6..0cf23d6e 100644 --- a/tests/test_regression_against_cases.py +++ b/tests/test_regression_against_cases.py @@ -24,7 +24,7 @@ def test_regression_against_case(case: Path): reference_dataset = read_dataset_from_netcdf(Path(__file__).parent / "regression_results" / f"{case_name}_result.nc").load() dataset, reference_dataset = xr.align(dataset, reference_dataset) - assert_allclose(dataset, reference_dataset, rtol=1e-8, atol=0) + assert_allclose(dataset, reference_dataset, rtol=1e-6, atol=0) @pytest.mark.parametrize("case", ALL_CASE_PATHS, ids=ALL_CASE_NAMES) @@ -41,4 +41,4 @@ def test_regression_against_case_with_update(case: Path): reference_dataset = read_dataset_from_netcdf(Path(__file__).parent / "regression_results" / f"{case_name}_result.nc").load() dataset, reference_dataset = xr.align(dataset, reference_dataset) - assert_allclose(dataset, reference_dataset, rtol=1e-8, atol=0) + assert_allclose(dataset, reference_dataset, rtol=1e-6, atol=0)