Skip to content

Commit 6d634cc

Browse files
committed
Minor fix
1 parent 2e72ebe commit 6d634cc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pygmt/src/read.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ def read(
7777
<class 'xarray.core.dataarray.DataArray'>
7878
"""
7979
if kind not in {"dataset", "grid", "image"}:
80-
msg = f"Invalid kind {kind}: must be one of 'dataset', 'grid', or 'image'."
80+
msg = f"Invalid kind '{kind}': must be one of 'dataset', 'grid', or 'image'."
8181
raise ValueError(msg)
8282

8383
if kind != "dataset" and any(
8484
v is not None for v in [column_names, header, dtype, index_col]
8585
):
8686
msg = (
87-
"Only the 'dataset' kind supports the 'column_names', 'header', "
88-
"'dtype', and 'index_col' arguments."
87+
"Only the 'dataset' kind supports the 'column_names', 'header', 'dtype', "
88+
"and 'index_col' arguments."
8989
)
9090
raise ValueError(msg)
9191

0 commit comments

Comments
 (0)