Skip to content

Commit

Permalink
Update fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Jun 22, 2024
1 parent 1f072d6 commit e0fb6ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3007,6 +3007,9 @@ def isel(
if drop and var.ndim == 0 and name in coord_names:
coord_names.remove(name)
continue
# Update our reference to `var_dims` after the call to isel
# to reflect any dropped dimensions
var_dims = var.dims
variables[name] = var
dims.update(zip(var_dims, var.shape))

Expand Down

0 comments on commit e0fb6ef

Please sign in to comment.