From f5dfbf93d92b90f35d84f1d851d9468acdd556e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 11 Jan 2026 22:24:17 +0100 Subject: [PATCH 1/6] Fix versions in FutureWarnig for constant_fill --- pygmt/src/grdfill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/src/grdfill.py b/pygmt/src/grdfill.py index 97248e8f6ff..8b945b9bcd8 100644 --- a/pygmt/src/grdfill.py +++ b/pygmt/src/grdfill.py @@ -80,7 +80,7 @@ def _validate_params( # TODO(PyGMT>=0.19.0): Remove the deprecated 'mode' parameter. @deprecate_parameter("no_data", "hole", "v0.18.0", remove_version="v0.20.0") @deprecate_parameter( - "constantfill", "constant_fill", "v0.15.0", remove_version="v0.19.0" + "constantfill", "constant_fill", "v0.18.0", remove_version="v0.20.0" ) @deprecate_parameter("gridfill", "grid_fill", "v0.18.0", remove_version="v0.20.0") @deprecate_parameter( From 39b5eb536ed3635603f7fb4bf4935c8f5400cbbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 11 Jan 2026 22:33:08 +0100 Subject: [PATCH 2/6] Fix versions in FutureWarnig for hole --- pygmt/src/grdfill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/src/grdfill.py b/pygmt/src/grdfill.py index 8b945b9bcd8..2d23242261d 100644 --- a/pygmt/src/grdfill.py +++ b/pygmt/src/grdfill.py @@ -78,7 +78,7 @@ def _validate_params( @fmt_docstring # TODO(PyGMT>=0.19.0): Remove the deprecated 'no_data' parameter. # TODO(PyGMT>=0.19.0): Remove the deprecated 'mode' parameter. -@deprecate_parameter("no_data", "hole", "v0.18.0", remove_version="v0.20.0") +@deprecate_parameter("no_data", "hole", "v0.15.0", remove_version="v0.19.0") @deprecate_parameter( "constantfill", "constant_fill", "v0.18.0", remove_version="v0.20.0" ) From dbf8cceadf11460383ca811efde87fdd8e474515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 11 Jan 2026 22:56:12 +0100 Subject: [PATCH 3/6] Test FutureWarnings --- examples/gallery/maps/test_grdfill.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 examples/gallery/maps/test_grdfill.py diff --git a/examples/gallery/maps/test_grdfill.py b/examples/gallery/maps/test_grdfill.py new file mode 100755 index 00000000000..93fd9d8e54e --- /dev/null +++ b/examples/gallery/maps/test_grdfill.py @@ -0,0 +1,19 @@ +""" +Grdfill +======= + +xxx +""" + +import pygmt + +earth_relief_holes = pygmt.datasets.load_sample_data(name="earth_relief_holes") + +# %% +filled_grid = pygmt.grdfill(grid=earth_relief_holes, mode="c20") + +# %% +filled_grid = pygmt.grdfill(grid=earth_relief_holes, constantfill="c20") + +# %% +filled_grid = pygmt.grdfill(grid=earth_relief_holes, constant_fill="c20") From 3c1c60557838f76b28b8395b424169aa5cab31e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 11 Jan 2026 23:03:07 +0100 Subject: [PATCH 4/6] Remove execution permission --- examples/gallery/maps/test_grdfill.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 examples/gallery/maps/test_grdfill.py diff --git a/examples/gallery/maps/test_grdfill.py b/examples/gallery/maps/test_grdfill.py old mode 100755 new mode 100644 From f98391ebcadc8a6fb54be5d43233b0121e724fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 11 Jan 2026 23:23:09 +0100 Subject: [PATCH 5/6] Test no_data to hole --- examples/gallery/maps/test_grdfill.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/gallery/maps/test_grdfill.py b/examples/gallery/maps/test_grdfill.py index 93fd9d8e54e..6b3cf3e0617 100644 --- a/examples/gallery/maps/test_grdfill.py +++ b/examples/gallery/maps/test_grdfill.py @@ -1,5 +1,5 @@ """ -Grdfill +grdfill ======= xxx @@ -17,3 +17,6 @@ # %% filled_grid = pygmt.grdfill(grid=earth_relief_holes, constant_fill="c20") + +# %% +hole_grid = pygmt.grdfill(grid=earth_relief_holes, no_data="42") From 9c72d976606ea06b3a8ca440eeee865f0ef2b22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 11 Jan 2026 23:48:33 +0100 Subject: [PATCH 6/6] Remove test example --- examples/gallery/maps/test_grdfill.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 examples/gallery/maps/test_grdfill.py diff --git a/examples/gallery/maps/test_grdfill.py b/examples/gallery/maps/test_grdfill.py deleted file mode 100644 index 6b3cf3e0617..00000000000 --- a/examples/gallery/maps/test_grdfill.py +++ /dev/null @@ -1,22 +0,0 @@ -""" -grdfill -======= - -xxx -""" - -import pygmt - -earth_relief_holes = pygmt.datasets.load_sample_data(name="earth_relief_holes") - -# %% -filled_grid = pygmt.grdfill(grid=earth_relief_holes, mode="c20") - -# %% -filled_grid = pygmt.grdfill(grid=earth_relief_holes, constantfill="c20") - -# %% -filled_grid = pygmt.grdfill(grid=earth_relief_holes, constant_fill="c20") - -# %% -hole_grid = pygmt.grdfill(grid=earth_relief_holes, no_data="42")