Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 6, 2024
1 parent 472b66f commit 021ba45
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2997,10 +2997,7 @@ def isel(
# all, just avoid iterating through thing
var_indexer_keys = all_keys.intersection(var_dims)
if var_indexer_keys:
var_indexers = {
k: indexers[k]
for k in var_indexer_keys
}
var_indexers = {k: indexers[k] for k in var_indexer_keys}
var = var.isel(var_indexers)
if drop and var.ndim == 0 and name in coord_names:
coord_names.remove(name)
Expand Down

0 comments on commit 021ba45

Please sign in to comment.