Skip to content

Commit

Permalink
Reduce dask tokenization time
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Oct 19, 2023
1 parent 1e8f618 commit 80ff878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def _maybe_chunk(
# when rechunking by different amounts, make sure dask names change
# by providing chunks as an input to tokenize.
# subtle bugs result otherwise. see GH3350
token2 = tokenize(name, token if token else var._data, chunks)
token2 = tokenize(token if token else var._data, str(chunks))
name2 = f"{name_prefix}{name}-{token2}"

from_array_kwargs = utils.consolidate_dask_from_array_kwargs(
Expand Down

0 comments on commit 80ff878

Please sign in to comment.