We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f9eb68 commit 53dc76eCopy full SHA for 53dc76e
xarray/core/dataset.py
@@ -2992,7 +2992,7 @@ def isel(
2992
dims.update(zip(var.dims, var.shape))
2993
# Fastpath, skip all of this for variables with no dimensions
2994
# Keep the result cached for future dictionary update
2995
- elif var_dims := var.dims:
+ elif len(var_dims := var.dims):
2996
# Large datasets with alot of metadata may have many scalars
2997
# without any relevant dimensions for slicing.
2998
# Pick those out quickly and avoid paying the cost below
0 commit comments