Skip to content

Commit 8d57fdd

Browse files
pygmt.surface: Deprecate parameter maxradius to max_radius (Will be removed in v0.20.0) (#4300)
1 parent 216a00c commit 8d57fdd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pygmt/src/surface.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@
99
from pygmt._typing import PathLike, TableLike
1010
from pygmt.alias import Alias, AliasSystem
1111
from pygmt.clib import Session
12-
from pygmt.helpers import build_arg_list, fmt_docstring, use_alias
12+
from pygmt.helpers import build_arg_list, deprecate_parameter, fmt_docstring, use_alias
1313

1414
__doctest_skip__ = ["surface"]
1515

1616

1717
@fmt_docstring
18+
@deprecate_parameter("maxradius", "max_radius", "v0.18.0", remove_version="v0.20.0")
1819
@use_alias(
1920
C="convergence",
2021
Ll="lower",
2122
Lu="upper",
22-
M="maxradius",
23+
M="max_radius",
2324
T="tension",
2425
a="aspatial",
2526
b="binary",
@@ -104,9 +105,9 @@ def surface(
104105
This is the final convergence limit at the desired grid spacing;
105106
for intermediate (coarser) grids the effective convergence limit is
106107
divided by the grid spacing multiplier.
107-
maxradius : float or str
108+
max_radius : float or str
108109
Optional. After solving for the surface, apply a mask so that nodes
109-
farther than ``maxradius`` away from a data constraint are set to NaN
110+
farther than ``max_radius`` away from a data constraint are set to NaN
110111
[Default is no masking]. Append a distance unit (see
111112
:gmt-docs:`Units <surface.html#units>`) if needed. One can also
112113
select the nodes to mask by using the *n_cells*\ **c** form. Here

0 commit comments

Comments
 (0)