Skip to content

Commit

Permalink
Fix some typos (#1595)
Browse files Browse the repository at this point in the history
*Fix typos in decorators.py, sphdistance.py, and test_grdgradient.py
  • Loading branch information
seisman authored Oct 29, 2021
1 parent bc140cb commit 833f0eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pygmt/helpers/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@
[**a**]\ **x**\|\ **y**\|\ **d**\|\ **X**\|\ **Y**\|\
**D**\|[*col*]\ **z**\ *gap*\ [**+n**\|\ **p**].
Examine the spacing between consecutive data points in order to
impose breaks in the line. To specify multiple critera, provide
impose breaks in the line. To specify multiple criteria, provide
a list with each item containing a string describing one set of
critera. Prepend **a** to specify that all the criteria must be
criteria. Prepend **a** to specify that all the criteria must be
met [Default is to impose breaks if any criteria are met]. The
following modifiers are supported:
Expand Down
2 changes: 1 addition & 1 deletion pygmt/src/sphdistance.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def sphdistance(data=None, x=None, y=None, **kwargs):
- **n** - assign the ID numbers of the Voronoi polygons that each
grid node is inside
- **z** - assign all nodes inside the polygon the z-value of the center
node fot a natural nearest-neighbor grid.
node for a natural nearest-neighbor grid.
Optionally, append the resampling interval along Voronoi arcs in
spherical degrees.
Expand Down
2 changes: 1 addition & 1 deletion pygmt/tests/test_grdgradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ def test_grdgradient_fails(grid):
with pytest.raises(GMTInvalidInput):
grdgradient(grid=grid) # fails without required arguments
with pytest.raises(GMTInvalidInput):
# failes when tiles is specified but not normalize
# fails when tiles is specified but not normalize
grdgradient(grid=grid, azimuth=10, direction="c", tiles="c")

0 comments on commit 833f0eb

Please sign in to comment.