Skip to content

Commit 8cea798

Browse files
authored
Fix docstring for missing_dims argument to isel methods (#4298)
"exception" was renamed to "raise".
1 parent 04958ea commit 8cea798

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

xarray/core/dataarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ def isel(
10271027
missing_dims : {"raise", "warn", "ignore"}, default "raise"
10281028
What to do if dimensions that should be selected from are not present in the
10291029
DataArray:
1030-
- "exception": raise an exception
1030+
- "raise": raise an exception
10311031
- "warning": raise a warning, and ignore the missing dimensions
10321032
- "ignore": ignore the missing dimensions
10331033
**indexers_kwargs : {dim: indexer, ...}, optional

xarray/core/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1923,7 +1923,7 @@ def isel(
19231923
missing_dims : {"raise", "warn", "ignore"}, default "raise"
19241924
What to do if dimensions that should be selected from are not present in the
19251925
Dataset:
1926-
- "exception": raise an exception
1926+
- "raise": raise an exception
19271927
- "warning": raise a warning, and ignore the missing dimensions
19281928
- "ignore": ignore the missing dimensions
19291929
**indexers_kwargs : {dim: indexer, ...}, optional

xarray/core/variable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ def isel(
10561056
missing_dims : {"raise", "warn", "ignore"}, default "raise"
10571057
What to do if dimensions that should be selected from are not present in the
10581058
DataArray:
1059-
- "exception": raise an exception
1059+
- "raise": raise an exception
10601060
- "warning": raise a warning, and ignore the missing dimensions
10611061
- "ignore": ignore the missing dimensions
10621062

0 commit comments

Comments
 (0)