Skip to content

Commit d8e1924

Browse files
committed
better tokenize
1 parent 0da4687 commit d8e1924

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
@@ -1539,7 +1539,7 @@ def subset_to_blocks(
15391539
# These rest is copied from dask.array.core.py with slight modifications
15401540
index = tuple(slice(k, k + 1) if isinstance(k, Integral) else k for k in index)
15411541

1542-
name = "groupby-cohort-" + tokenize(array, index)
1542+
name = "groupby-cohort-" + tokenize(array, str(index))
15431543
new_keys = array._key_array[index]
15441544

15451545
squeezed = tuple(np.squeeze(i) if isinstance(i, np.ndarray) else i for i in index)

0 commit comments

Comments
 (0)