Skip to content

Commit 51310a3

Browse files
authored
silence warning (#390)
1 parent edc1344 commit 51310a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flox/xarray.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def wrapper(array, *by, func, skipna, core_dims, **kwargs):
524524
obj, xr.Dataset
525525
) # do not re-order dataarrays inside datasets
526526
actual[var] = _restore_dim_order(
527-
actual[var], template, by_da[0], no_groupby_reorder=no_groupby_reorder
527+
actual[var].variable, template, by_da[0], no_groupby_reorder=no_groupby_reorder
528528
)
529529

530530
if missing_dim:

0 commit comments

Comments
 (0)