Skip to content

Commit e0fb6ef

Browse files
committed
Update fixes
1 parent 1f072d6 commit e0fb6ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xarray/core/dataset.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3007,6 +3007,9 @@ def isel(
30073007
if drop and var.ndim == 0 and name in coord_names:
30083008
coord_names.remove(name)
30093009
continue
3010+
# Update our reference to `var_dims` after the call to isel
3011+
# to reflect any dropped dimensions
3012+
var_dims = var.dims
30103013
variables[name] = var
30113014
dims.update(zip(var_dims, var.shape))
30123015

0 commit comments

Comments
 (0)