Skip to content

Commit

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


Expand All @@ -84,7 +84,7 @@ def test_earth_faaerror_01d_with_region():
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.719997, atol=0.04)
npt.assert_allclose(data.max(), 45.3, atol=0.04)
npt.assert_allclose(data.max(), 21.04, 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(), 0.399998, atol=0.04)
npt.assert_allclose(data.min(), 13.359997, atol=0.04)
npt.assert_allclose(data.max(), 115.0, atol=0.04)

0 comments on commit 3ba3b8a

Please sign in to comment.