From e396f40e5a851467f5f17a7716e13f00807a4516 Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Thu, 10 Feb 2022 16:01:44 +0000 Subject: [PATCH 1/5] update test_grd2cpt.py to use static Earth relief file --- pygmt/tests/test_grd2cpt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/tests/test_grd2cpt.py b/pygmt/tests/test_grd2cpt.py index 59c1e4b7f42..04493be0bfb 100644 --- a/pygmt/tests/test_grd2cpt.py +++ b/pygmt/tests/test_grd2cpt.py @@ -5,7 +5,7 @@ import pytest from pygmt import Figure, grd2cpt -from pygmt.datasets import load_earth_relief +from pygmt.helpers.testing import load_static_earth_relief from pygmt.exceptions import GMTInvalidInput from pygmt.helpers import GMTTempFile @@ -15,7 +15,7 @@ def fixture_grid(): """ Load the grid data from the sample earth_relief file. """ - return load_earth_relief() + return load_static_earth_relief() @pytest.mark.mpl_image_compare From 7f3ee12c23a8b203f8620d43b19632940cbb93e4 Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Thu, 10 Feb 2022 16:03:22 +0000 Subject: [PATCH 2/5] add test_grd2cpt.png.dvc --- pygmt/tests/baseline/test_grd2cpt.png.dvc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/tests/baseline/test_grd2cpt.png.dvc b/pygmt/tests/baseline/test_grd2cpt.png.dvc index f55edee9848..d8b4d090d90 100644 --- a/pygmt/tests/baseline/test_grd2cpt.png.dvc +++ b/pygmt/tests/baseline/test_grd2cpt.png.dvc @@ -1,4 +1,4 @@ outs: -- md5: 305e3650aa4ed9a56bec58be3a0d752b - size: 22460 +- md5: fb08cbce34046c341a5f68d45cd7aa6e + size: 20443 path: test_grd2cpt.png From 61936bbb30eee7be5fdf80594ba445bfacf7e185 Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Thu, 10 Feb 2022 16:08:05 +0000 Subject: [PATCH 3/5] run make format --- pygmt/tests/test_grd2cpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/tests/test_grd2cpt.py b/pygmt/tests/test_grd2cpt.py index 04493be0bfb..8d1a437e716 100644 --- a/pygmt/tests/test_grd2cpt.py +++ b/pygmt/tests/test_grd2cpt.py @@ -5,9 +5,9 @@ import pytest from pygmt import Figure, grd2cpt -from pygmt.helpers.testing import load_static_earth_relief from pygmt.exceptions import GMTInvalidInput from pygmt.helpers import GMTTempFile +from pygmt.helpers.testing import load_static_earth_relief @pytest.fixture(scope="module", name="grid") From 6d062f9d1a7264a700341cad74e908d3b792b1a1 Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Thu, 10 Feb 2022 17:05:41 +0000 Subject: [PATCH 4/5] change frame parameter --- pygmt/tests/test_grd2cpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/tests/test_grd2cpt.py b/pygmt/tests/test_grd2cpt.py index 8d1a437e716..a1afa97312a 100644 --- a/pygmt/tests/test_grd2cpt.py +++ b/pygmt/tests/test_grd2cpt.py @@ -27,7 +27,7 @@ def test_grd2cpt(grid): fig = Figure() fig.basemap(frame="a", projection="W0/15c", region="d") grd2cpt(grid=grid) - fig.colorbar(frame="a2000") + fig.colorbar(frame="a") return fig From 8d7cbf29de16e8370ae485e5d37d366df809e3df Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Thu, 10 Feb 2022 17:07:32 +0000 Subject: [PATCH 5/5] update dvc fill --- pygmt/tests/baseline/test_grd2cpt.png.dvc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/tests/baseline/test_grd2cpt.png.dvc b/pygmt/tests/baseline/test_grd2cpt.png.dvc index d8b4d090d90..b50b4f2ff6b 100644 --- a/pygmt/tests/baseline/test_grd2cpt.png.dvc +++ b/pygmt/tests/baseline/test_grd2cpt.png.dvc @@ -1,4 +1,4 @@ outs: -- md5: fb08cbce34046c341a5f68d45cd7aa6e - size: 20443 +- md5: 6d535fbb53a470a3a12fafeab1cf4f66 + size: 22230 path: test_grd2cpt.png