Skip to content

Commit

Permalink
Use the default rtol on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
santisoler committed Oct 2, 2024
1 parent ffdbb2b commit 177a119
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions choclo/tests/test_prism_magnetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ def test_kernel_en(self, prism, shift):
diff_above = kernel_above[0] - kernel_above[1]
diff_shifted = kernel_shifted[0] - kernel_shifted[1]
# These two differences should be close enough (not equal!)
npt.assert_allclose(diff_above, diff_shifted, rtol=1e-2)
npt.assert_allclose(diff_above, diff_shifted, rtol=1e-7)

@pytest.mark.parametrize("shift", ("easting", "upward"))
def test_kernel_eu(self, prism, shift):
Expand Down Expand Up @@ -878,7 +878,7 @@ def test_kernel_eu(self, prism, shift):
diff_inline = kernel_inline[0] - kernel_inline[1]
diff_shifted = kernel_shifted[0] - kernel_shifted[1]
# These two differences should be close enough (not equal!)
npt.assert_allclose(diff_inline, diff_shifted, rtol=1e-2)
npt.assert_allclose(diff_inline, diff_shifted, rtol=1e-7)

@pytest.mark.parametrize("shift", ("northing", "upward"))
def test_kernel_nu(self, prism, shift):
Expand Down Expand Up @@ -906,4 +906,4 @@ def test_kernel_nu(self, prism, shift):
diff_inline = kernel_inline[0] - kernel_inline[1]
diff_shifted = kernel_shifted[0] - kernel_shifted[1]
# These two differences should be close enough (not equal!)
npt.assert_allclose(diff_inline, diff_shifted, rtol=1e-2)
npt.assert_allclose(diff_inline, diff_shifted, rtol=1e-7)

0 comments on commit 177a119

Please sign in to comment.