Skip to content

Commit f722b47

Browse files
committed
Revert changes in pygmt/io.py
1 parent 9669bcf commit f722b47

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

pygmt/io.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22
PyGMT input/output (I/O) utilities.
33
"""
44

5-
from typing import Literal
6-
75
import xarray as xr
86

97

10-
def load_dataarray(
11-
filename_or_obj, *, engine="gmt", decode_kind: Literal["grid", "image"], **kwargs
12-
):
8+
def load_dataarray(filename_or_obj, **kwargs):
139
"""
1410
Open, load into memory, and close a DataArray from a file or file-like object
1511
containing a single data variable.
@@ -36,10 +32,6 @@ def load_dataarray(
3632
-------
3733
datarray : xarray.DataArray
3834
The newly created DataArray.
39-
engine : str
40-
Engine to use when reading files. Default engine is 'gmt'.
41-
decode_kind
42-
The kind of data to read. Valid values are ``"grid"`` or ``"image"``.
4335
4436
See Also
4537
--------
@@ -49,9 +41,7 @@ def load_dataarray(
4941
msg = "'cache' has no effect in this context."
5042
raise TypeError(msg)
5143

52-
with xr.open_dataarray(
53-
filename_or_obj, engine=engine, decode_kind=decode_kind, **kwargs
54-
) as dataarray:
44+
with xr.open_dataarray(filename_or_obj, **kwargs) as dataarray:
5545
result = dataarray.load()
5646
_ = result.gmt # load GMTDataArray accessor information
5747

0 commit comments

Comments
 (0)