Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
martindurant committed Oct 19, 2023
1 parent 80ff878 commit ec01817
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +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
# we use str() for speed, and use the name for the final array name on the next line
token2 = tokenize(token if token else var._data, str(chunks))
name2 = f"{name_prefix}{name}-{token2}"

Expand Down

0 comments on commit ec01817

Please sign in to comment.