Skip to content

Commit

Permalink
Revert "better tokenize"
Browse files Browse the repository at this point in the history
This reverts commit d8e1924.
  • Loading branch information
dcherian committed Jan 30, 2025
1 parent d8e1924 commit 1484e26
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 @@ -1539,7 +1539,7 @@ def subset_to_blocks(
# These rest is copied from dask.array.core.py with slight modifications
index = tuple(slice(k, k + 1) if isinstance(k, Integral) else k for k in index)

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

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

0 comments on commit 1484e26

Please sign in to comment.