Skip to content

Commit

Permalink
Adjust maximum values and round values for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonnefroehlich committed Dec 26, 2024
1 parent b220050 commit b167338
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 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(), 0., atol=0.04)
npt.assert_allclose(data.max(), 49.159996, atol=0.04)
npt.assert_allclose(data.min(), 0.0, atol=0.04)
npt.assert_allclose(data.max(), 49.16, atol=0.04)


def test_earth_faaerror_01d_with_region():
Expand All @@ -83,7 +83,7 @@ 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(), 0.719997, atol=0.04)
npt.assert_allclose(data.min(), 0.72, atol=0.04)
npt.assert_allclose(data.max(), 21.04, atol=0.04)


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.max(), 115.0, atol=0.04)
npt.assert_allclose(data.min(), 0.40, atol=0.04)
npt.assert_allclose(data.max(), 13.36, atol=0.04)

0 comments on commit b167338

Please sign in to comment.