Skip to content

Commit

Permalink
Set atol to 0.0001 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonnefroehlich committed Dec 25, 2024
1 parent f49bf60 commit 338377c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pygmt/tests/test_datasets_mean_dynamic_topography.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def test_earth_mdt_01d():
assert data.gmt.registration == 0
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
npt.assert_allclose(data.min(), -1.47, atol=0.01)
npt.assert_allclose(data.max(), 1.72, atol=0.01)
npt.assert_allclose(data.min(), -1.47, atol=0.0001)
npt.assert_allclose(data.max(), 1.72, atol=0.0001)


def test_earth_mdt_01d_with_region():
Expand All @@ -33,8 +33,8 @@ def test_earth_mdt_01d_with_region():
assert data.gmt.registration == 0
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
npt.assert_allclose(data.min(), 0.35, atol=0.01)
npt.assert_allclose(data.max(), 0.48, atol=0.01)
npt.assert_allclose(data.min(), 0.35, atol=0.0001)
npt.assert_allclose(data.max(), 0.48, atol=0.0001)


def test_earth_mdt_07m_default_registration():
Expand All @@ -49,5 +49,5 @@ def test_earth_mdt_07m_default_registration():
assert data.coords["lat"].data.max() == 5.0
assert data.coords["lon"].data.min() == -10.0
assert data.coords["lon"].data.max() == -9.0
npt.assert_allclose(data.min(), 0.41, atol=0.01)
npt.assert_allclose(data.max(), 0.43, atol=0.01)
npt.assert_allclose(data.min(), 0.41, atol=0.0001)
npt.assert_allclose(data.max(), 0.43, atol=0.0001)

0 comments on commit 338377c

Please sign in to comment.