We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e72ebe commit 6d634ccCopy full SHA for 6d634cc
1 file changed
pygmt/src/read.py
@@ -77,15 +77,15 @@ def read(
77
<class 'xarray.core.dataarray.DataArray'>
78
"""
79
if kind not in {"dataset", "grid", "image"}:
80
- msg = f"Invalid kind {kind}: must be one of 'dataset', 'grid', or 'image'."
+ msg = f"Invalid kind '{kind}': must be one of 'dataset', 'grid', or 'image'."
81
raise ValueError(msg)
82
83
if kind != "dataset" and any(
84
v is not None for v in [column_names, header, dtype, index_col]
85
):
86
msg = (
87
- "Only the 'dataset' kind supports the 'column_names', 'header', "
88
- "'dtype', and 'index_col' arguments."
+ "Only the 'dataset' kind supports the 'column_names', 'header', 'dtype', "
+ "and 'index_col' arguments."
89
)
90
91
0 commit comments