Skip to content

Commit b428491

Browse files
committed
Update {aliases} to $aliases and {table-classes} to $table_classes
1 parent 92d14a7 commit b428491

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+88
-88
lines changed

pygmt/helpers/decorators.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,11 @@ def fmt_docstring(module_func):
407407
... ----------
408408
... data
409409
... Pass in either a file name to an ASCII data table, a 2-D
410-
... {table-classes}.
411-
... {region}
412-
... {projection}
410+
... $table_classes.
411+
... $region
412+
... $projection
413413
...
414-
... {aliases}
414+
... $aliases
415415
... '''
416416
... pass
417417
>>> print(gmtinfo.__doc__)
@@ -453,7 +453,7 @@ def fmt_docstring(module_func):
453453
aliases.append(f" - {arg} = {alias}")
454454
filler_text["aliases"] = "\n".join(aliases)
455455

456-
filler_text["table-classes"] = (
456+
filler_text["table_classes"] = (
457457
":class:`numpy.ndarray`, a :class:`pandas.DataFrame`, an\n"
458458
" :class:`xarray.Dataset` made up of 1-D :class:`xarray.DataArray`\n"
459459
" data variables, or a :class:`geopandas.GeoDataFrame` containing the\n"

pygmt/src/basemap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def basemap(
4545
4646
Full GMT docs at :gmt-docs:`basemap.html`.
4747
48-
{aliases}
48+
$aliases
4949
- B = frame
5050
- J = projection
5151
- Jz = zscale

pygmt/src/binstats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def binstats(
6666
6767
Full GMT docs at :gmt-docs:`gmtbinstats.html`.
6868
69-
{aliases}
69+
$aliases
7070
- C = statistic
7171
- R = region
7272
- V = verbose
@@ -75,7 +75,7 @@ def binstats(
7575
Parameters
7676
----------
7777
data
78-
A file name of an ASCII data table or a 2-D {table-classes}.
78+
A file name of an ASCII data table or a 2-D $table_classes.
7979
$outgrid
8080
statistic
8181
Choose the statistic that will be computed per node based on the points that are

pygmt/src/blockm.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def blockmean(
113113
114114
Full GMT docs at :gmt-docs:`blockmean.html`.
115115
116-
{aliases}
116+
$aliases
117117
- R = region
118118
- V = verbose
119119
- r = registration
@@ -123,7 +123,7 @@ def blockmean(
123123
data
124124
Pass in (x, y, z) or (longitude, latitude, elevation) values by
125125
providing a file name to an ASCII data table, a 2-D
126-
{table-classes}.
126+
$table_classes.
127127
x/y/z : 1-D arrays
128128
Arrays of x and y coordinates and values z of the data points.
129129
$output_type
@@ -228,7 +228,7 @@ def blockmedian(
228228
229229
Full GMT docs at :gmt-docs:`blockmedian.html`.
230230
231-
{aliases}
231+
$aliases
232232
- R = region
233233
- V = verbose
234234
- r = registration
@@ -238,7 +238,7 @@ def blockmedian(
238238
data
239239
Pass in (x, y, z) or (longitude, latitude, elevation) values by
240240
providing a file name to an ASCII data table, a 2-D
241-
{table-classes}.
241+
$table_classes.
242242
x/y/z : 1-D arrays
243243
Arrays of x and y coordinates and values z of the data points.
244244
$output_type
@@ -337,7 +337,7 @@ def blockmode(
337337
338338
Full GMT docs at :gmt-docs:`blockmode.html`.
339339
340-
{aliases}
340+
$aliases
341341
- R = region
342342
- V = verbose
343343
- r = registration
@@ -347,7 +347,7 @@ def blockmode(
347347
data
348348
Pass in (x, y, z) or (longitude, latitude, elevation) values by
349349
providing a file name to an ASCII data table, a 2-D
350-
{table-classes}.
350+
$table_classes.
351351
x/y/z : 1-D arrays
352352
Arrays of x and y coordinates and values z of the data points.
353353
$output_type

pygmt/src/coast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def coast(
6666
6767
Full GMT docs at :gmt-docs:`coast.html`.
6868
69-
{aliases}
69+
$aliases
7070
- B = frame
7171
- D = resolution
7272
- F = box

pygmt/src/colorbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def colorbar(
5656
5757
Full GMT docs at :gmt-docs:`colorbar.html`.
5858
59-
{aliases}
59+
$aliases
6060
- B = frame
6161
- F = box
6262
- I = shading

pygmt/src/contour.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def contour( # noqa: PLR0913
6161
6262
Full GMT docs at :gmt-docs:`contour.html`.
6363
64-
{aliases}
64+
$aliases
6565
- B = frame
6666
- J = projection
6767
- N = no_clip
@@ -76,7 +76,7 @@ def contour( # noqa: PLR0913
7676
data
7777
Pass in (x, y, z) or (longitude, latitude, elevation) values by
7878
providing a file name to an ASCII data table, a 2-D
79-
{table-classes}.
79+
$table_classes.
8080
x/y/z : 1-D arrays
8181
Arrays of x and y coordinates and values z of the data points.
8282
$projection

pygmt/src/dimfilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def dimfilter(
4747
4848
Full GMT docs at :gmt-docs:`dimfilter.html`.
4949
50-
{aliases}
50+
$aliases
5151
- R = region
5252
- V = verbose
5353

pygmt/src/filter1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def filter1d(
4141
4242
Full GMT docs at :gmt-docs:`filter1d.html`.
4343
44-
{aliases}
44+
$aliases
4545
- V = verbose
4646
4747
Parameters

pygmt/src/grd2cpt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def grd2cpt(
8585
8686
Full GMT docs at :gmt-docs:`grd2cpt.html`.
8787
88-
{aliases}
88+
$aliases
8989
- G = truncate
9090
- M = overrule_bg
9191
- N = no_bg

0 commit comments

Comments
 (0)