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 2592076 commit fadd876Copy full SHA for fadd876
xarray/core/dataset.py
@@ -2990,7 +2990,7 @@ def isel(
2990
dims.update(zip(var.dims, var.shape))
2991
# Fastpath, skip all of this for variables with no dimensions
2992
# Keep the result cached for future dictionary update
2993
- elif var_dims := var.dims:
+ elif len(var_dims := var.dims):
2994
# Large datasets with alot of metadata may have many scalars
2995
# without any relevant dimensions for slicing.
2996
# Pick those out quickly and avoid paying the cost below
0 commit comments