Skip to content

Commit

Permalink
Use default atol and rtol in regression testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tbody-cfs committed Jan 22, 2024
1 parent c87de29 commit 1c447a5
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-6, atol=0)
assert_allclose(dataset, reference_dataset)


@pytest.mark.parametrize("case", ALL_CASE_PATHS, ids=ALL_CASE_NAMES)
Expand All @@ -42,4 +42,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-6, atol=0)
assert_allclose(dataset, reference_dataset)

0 comments on commit 1c447a5

Please sign in to comment.