Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Oct 25, 2022
1 parent 91110e6 commit ee6be26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flox/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ def dask_groupby_agg(
raise ValueError(f"Unknown method={method}.")

# extract results from the dict
adjust_chunks = {inds[ax]: lambda: 0 for ax in axis}
adjust_chunks = {inds[ax]: lambda c: 0 for ax in axis}
if method == "blockwise" and len(axis) > 1:
nblocks = tuple(len(array.chunks[ax]) for ax in axis)
group_chunks = np.unravel_index(group_chunks, nblocks)
Expand Down

0 comments on commit ee6be26

Please sign in to comment.