Skip to content

Commit 208eaf4

Browse files
committed
Another optimization
1 parent 66ed57c commit 208eaf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flox/xarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def wrapper(array, *by, func, skipna, core_dims, **kwargs):
435435

436436
# restore non-dim coord variables without the core dimension
437437
# TODO: shouldn't apply_ufunc handle this?
438-
for var in set(ds_broad.variables) - set(ds_broad._indexes) - set(ds_broad.dims):
438+
for var in set(ds_broad._coord_names) - set(ds_broad._indexes) - set(ds_broad.dims):
439439
if all(d not in ds_broad[var].dims for d in dim_tuple):
440440
actual[var] = ds_broad[var]
441441

0 commit comments

Comments
 (0)