Skip to content

Commit

Permalink
Adjust 'atol' in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonnefroehlich committed Dec 26, 2024
1 parent a6ca401 commit fcd3a3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pygmt/tests/test_datasets_earth_free_air_anomaly.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def test_earth_faaerror_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(), -188.85, atol=0.025)
npt.assert_allclose(data.max(), 161.25, atol=0.025)
npt.assert_allclose(data.min(), -188.85, atol=0.04)
npt.assert_allclose(data.max(), 161.25, atol=0.04)


def test_earth_faaerror_01d_with_region():
Expand All @@ -83,8 +83,8 @@ def test_earth_faaerror_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(), -36.125, atol=0.025)
npt.assert_allclose(data.max(), 45.3, atol=0.025)
npt.assert_allclose(data.min(), -36.125, atol=0.04)
npt.assert_allclose(data.max(), 45.3, atol=0.04)


def test_earth_faaerror_01m_default_registration():
Expand All @@ -101,5 +101,5 @@ def test_earth_faaerror_01m_default_registration():
npt.assert_allclose(data.coords["lat"].data.max(), 4.991666666)
npt.assert_allclose(data.coords["lon"].data.min(), -9.99166666)
npt.assert_allclose(data.coords["lon"].data.max(), -9.00833333)
npt.assert_allclose(data.min(), -49.225, atol=0.025)
npt.assert_allclose(data.max(), 115.0, atol=0.025)
npt.assert_allclose(data.min(), -49.225, atol=0.04)
npt.assert_allclose(data.max(), 115.0, atol=0.04)

0 comments on commit fcd3a3d

Please sign in to comment.