Skip to content

Commit 7415fbf

Browse files
authored
pygmt.triangulate: Migrate the verbose parameter to the new alias system (#4098)
1 parent 63d4561 commit 7415fbf

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

pygmt/src/triangulate.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class triangulate: # noqa: N801
5353
@use_alias(
5454
I="spacing",
5555
R="region",
56-
V="verbose",
5756
b="binary",
5857
d="nodata",
5958
e="find",
@@ -72,6 +71,10 @@ def regular_grid(
7271
z=None,
7372
outgrid: PathLike | None = None,
7473
projection=None,
74+
verbose: Literal[
75+
"quiet", "error", "warning", "timing", "info", "compat", "debug"
76+
]
77+
| bool = False,
7578
**kwargs,
7679
) -> xr.DataArray | None:
7780
"""
@@ -99,6 +102,7 @@ def regular_grid(
99102
100103
{aliases}
101104
- J = projection
105+
- V = verbose
102106
103107
Parameters
104108
----------
@@ -145,6 +149,7 @@ def regular_grid(
145149
"""
146150
aliasdict = AliasSystem().add_common(
147151
J=projection,
152+
V=verbose,
148153
)
149154
aliasdict.merge(kwargs)
150155

@@ -166,7 +171,6 @@ def regular_grid(
166171
@use_alias(
167172
I="spacing",
168173
R="region",
169-
V="verbose",
170174
b="binary",
171175
d="nodata",
172176
e="find",
@@ -187,6 +191,10 @@ def delaunay_triples(
187191
output_type: Literal["pandas", "numpy", "file"] = "pandas",
188192
outfile: PathLike | None = None,
189193
projection=None,
194+
verbose: Literal[
195+
"quiet", "error", "warning", "timing", "info", "compat", "debug"
196+
]
197+
| bool = False,
190198
**kwargs,
191199
) -> pd.DataFrame | np.ndarray | None:
192200
"""
@@ -207,6 +215,7 @@ def delaunay_triples(
207215
208216
{aliases}
209217
- J = projection
218+
- V = verbose
210219
211220
Parameters
212221
----------
@@ -251,6 +260,7 @@ def delaunay_triples(
251260

252261
aliasdict = AliasSystem().add_common(
253262
J=projection,
263+
V=verbose,
254264
)
255265
aliasdict.merge(kwargs)
256266

0 commit comments

Comments
 (0)