We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dddbca commit 86b4167Copy full SHA for 86b4167
xarray/core/dataset.py
@@ -309,7 +309,8 @@ def _maybe_chunk(
309
# when rechunking by different amounts, make sure dask names change
310
# by providing chunks as an input to tokenize.
311
# subtle bugs result otherwise. see GH3350
312
- token2 = tokenize(name, token if token else var._data, chunks)
+ # we use str() for speed, and use the name for the final array name on the next line
313
+ token2 = tokenize(token if token else var._data, str(chunks))
314
name2 = f"{name_prefix}{name}-{token2}"
315
316
from_array_kwargs = utils.consolidate_dask_from_array_kwargs(
0 commit comments