Skip to content

Commit

Permalink
Relax regression rtol from 1E-8 to 1E-6
Browse files Browse the repository at this point in the history
  • Loading branch information
tbody-cfs committed Dec 4, 2023
1 parent 69a3a88 commit 5723fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_regression_against_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

0 comments on commit 5723fa1

Please sign in to comment.