Skip to content

Commit

Permalink
Merge branch 'main' into refactor/data_kind
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Oct 3, 2024
2 parents 35acf46 + 68a17a0 commit bca59f5
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions pygmt/helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,25 +229,6 @@ def data_kind( # noqa: PLR0911
Examples
--------
<<<<<<< HEAD
>>> import numpy as np
>>> import xarray as xr
>>> import pandas as pd
>>> import pathlib
>>> import io
>>> data_kind(data=None)
'none'
>>> data_kind(data=None, required=False)
'arg'
>>> [data_kind(data=data) for data in (2, 2.0, True, False)]
['arg', 'arg', 'arg', 'arg']
>>> data_kind(data="my-data-file.txt")
'file'
>>> data_kind(data=pathlib.Path("my-data-file.txt"))
'file'
>>> data_kind(data=["data1.txt", "data2.txt"])
'file'
>>> data_kind(data=xr.DataArray(np.random.rand(4, 3)))
>>> import io
>>> from pathlib import Path
>>> import numpy as np
Expand Down

0 comments on commit bca59f5

Please sign in to comment.