Skip to content

Commit 27d4723

Browse files
committed
update doctest skip format
1 parent 2014de4 commit 27d4723

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pygmt/src/grdtrack.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
use_alias,
1313
)
1414

15+
__doctest_skip__ = ["grdtrack"]
16+
1517

1618
@fmt_docstring
1719
@use_alias(
@@ -267,19 +269,19 @@ def grdtrack(points, grid, newcolname=None, outfile=None, **kwargs):
267269
268270
Example
269271
-------
270-
>>> import pygmt # doctest: +SKIP
272+
>>> import pygmt
271273
>>> # Load a grid of @earth_relief_30m data, with an x-range of -118 to
272274
>>> # -107, and a y-range of -49 to -42
273275
>>> grid = pygmt.datasets.load_earth_relief(
274276
... resolution="30m", region=[-118, -107, -49, -42]
275-
... ) # doctest: +SKIP
277+
... )
276278
>>> # Load a pandas dataframe with ocean ridge points
277279
>>> points = pygmt.datasets.load_ocean_ridge_points() # doctest: +SKIP
278280
>>> # Create a pandas dataframe from an input grid and set of points
279281
>>> # The output dataframe adds a column named "bathymetry"
280282
>>> output_dataframe = pygmt.grdtrack(
281283
... points=points, grid=grid, newcolname="bathymetry"
282-
... ) # doctest: +SKIP
284+
... )
283285
"""
284286
if hasattr(points, "columns") and newcolname is None:
285287
raise GMTInvalidInput("Please pass in a str to 'newcolname'")

0 commit comments

Comments
 (0)