Skip to content

Commit 2a3965c

Browse files
authored
Inconsistent docstring for isel etc. (#5388)
I found that the options for the `missing_dims` parameter where described inconsistently in the docstring (`"warning" vs "warn"). Not sure I found all occurrences of it here.
1 parent 3b81a86 commit 2a3965c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xarray/core/dataarray.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ def isel(
11021102
What to do if dimensions that should be selected from are not present in the
11031103
DataArray:
11041104
- "raise": raise an exception
1105-
- "warning": raise a warning, and ignore the missing dimensions
1105+
- "warn": raise a warning, and ignore the missing dimensions
11061106
- "ignore": ignore the missing dimensions
11071107
**indexers_kwargs : {dim: indexer, ...}, optional
11081108
The keyword arguments form of ``indexers``.
@@ -2222,7 +2222,7 @@ def transpose(
22222222
What to do if dimensions that should be selected from are not present in the
22232223
DataArray:
22242224
- "raise": raise an exception
2225-
- "warning": raise a warning, and ignore the missing dimensions
2225+
- "warn": raise a warning, and ignore the missing dimensions
22262226
- "ignore": ignore the missing dimensions
22272227
22282228
Returns
@@ -4452,7 +4452,7 @@ def query(
44524452
What to do if dimensions that should be selected from are not present in the
44534453
Dataset:
44544454
- "raise": raise an exception
4455-
- "warning": raise a warning, and ignore the missing dimensions
4455+
- "warn": raise a warning, and ignore the missing dimensions
44564456
- "ignore": ignore the missing dimensions
44574457
**queries_kwargs : {dim: query, ...}, optional
44584458
The keyword arguments form of ``queries``.

0 commit comments

Comments
 (0)