From 338377c735a24b1b9c6940ba15c73597a528edfe Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Wed, 25 Dec 2024 16:29:34 +0100 Subject: [PATCH] Set atol to 0.0001 in tests --- pygmt/tests/test_datasets_mean_dynamic_topography.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pygmt/tests/test_datasets_mean_dynamic_topography.py b/pygmt/tests/test_datasets_mean_dynamic_topography.py index 2e7566d0509..bf38ff5c0b1 100644 --- a/pygmt/tests/test_datasets_mean_dynamic_topography.py +++ b/pygmt/tests/test_datasets_mean_dynamic_topography.py @@ -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(): @@ -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(): @@ -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)