Skip to content

Commit 88dcf01

Browse files
pygmt.grdfill: Remove parameter 'no_data' (Deprecated since v0.15.0) (#4344)
1 parent 4d20c08 commit 88dcf01

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

pygmt/src/grdfill.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ def _validate_params(
7676

7777

7878
@fmt_docstring
79-
# TODO(PyGMT>=0.19.0): Remove the deprecated 'no_data' parameter.
8079
# TODO(PyGMT>=0.19.0): Remove the deprecated 'mode' parameter.
8180
# TODO(PyGMT>=0.20.0): Remove the deprecated '*fill' parameters.
82-
@deprecate_parameter("no_data", "hole", "v0.15.0", remove_version="v0.19.0")
8381
@deprecate_parameter(
8482
"constantfill", "constant_fill", "v0.18.0", remove_version="v0.20.0"
8583
)

pygmt/tests/test_grdfill.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,6 @@ def test_grdfill_hole(grid, expected_grid):
131131
assert result.gmt.registration is GridRegistration.PIXEL
132132
xr.testing.assert_allclose(a=result, b=expected_grid)
133133

134-
# Test the deprecated 'no_data' parameter.
135-
# TODO(PyGMT>=0.19.0): Remove the following lines.
136-
with pytest.warns(FutureWarning):
137-
result2 = grdfill(grid=grid_no_nan, constant_fill=20, no_data=-99999)
138-
xr.testing.assert_allclose(a=result2, b=expected_grid)
139-
140134

141135
def test_grdfill_inquire(grid):
142136
"""

0 commit comments

Comments
 (0)