Skip to content

Commit a06675d

Browse files
authored
Merge branch 'data_kind/doctest' into refactor/data_kind
2 parents a16abde + e80215a commit a06675d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

pygmt/helpers/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,10 @@ def data_kind( # noqa: PLR0911
217217
Parameters
218218
----------
219219
data
220-
The data that is provided to a module.
220+
The data to be passed to a GMT module.
221221
required
222-
If the data is required or not. Set to ``False`` when dealing with optional
223-
virtual files.
222+
Whether 'data' is required. Set to ``False`` when dealing with optional virtual
223+
files.
224224
225225
Returns
226226
-------
@@ -268,7 +268,7 @@ def data_kind( # noqa: PLR0911
268268
['file', 'file']
269269
>>> data_kind(data=Path("file.txt"))
270270
'file'
271-
>>> data_kind(data=(Path("file1.txt", "file2.txt")))
271+
>>> data_kind(data=(Path("file1.txt"), Path("file2.txt")))
272272
'file'
273273
274274
The "grid" kind:

pygmt/tests/test_grdtrack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def test_grdtrack_wrong_kind_of_points_input(dataarray, dataframe):
135135

136136
def test_grdtrack_wrong_kind_of_grid_input(dataarray, dataframe):
137137
"""
138-
Run grdtrack using grid input that is not as xarray.DataArray (grid) or file.
138+
Run grdtrack using grid input that is not an xarray.DataArray or file.
139139
"""
140140
invalid_grid = dataarray.to_dataset()
141141
with pytest.raises(GMTInvalidInput):

pygmt/tests/test_x2sys_cross.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ def test_x2sys_cross_input_two_filenames():
236236

237237
def test_x2sys_cross_invalid_tracks_input_type(tracks):
238238
"""
239-
Run x2sys_cross using tracks input that is not a pandas.DataFrame (matrix) or str
240-
(file) type, which would raise a GMTInvalidInput error.
239+
Run x2sys_cross using tracks input that is not a pandas.DataFrame or str type,
240+
which would raise a GMTInvalidInput error.
241241
"""
242242
invalid_tracks = tracks[0].to_xarray().z
243243
with pytest.raises(GMTInvalidInput):

0 commit comments

Comments
 (0)