Skip to content

Commit f20413f

Browse files
committed
Fix cohorts for split-reduce
1 parent 0430121 commit f20413f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flox/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def find_group_cohorts(labels, chunks, merge=True, method="cohorts"):
150150
import toolz as tlz
151151

152152
if method == "split-reduce":
153-
return np.unique(labels).reshape(-1, 1)
153+
return np.unique(labels).reshape(-1, 1).tolist()
154154

155155
which_chunk = np.repeat(np.arange(len(chunks)), chunks)
156156
# these are chunks where a label is present

0 commit comments

Comments
 (0)