Skip to content

Commit

Permalink
Dask moved public objects in 2024.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Sep 19, 2024
1 parent 337ebab commit c7caf8b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Write the date in place of the "Unreleased" in the case a new version is release

- Added support for explicit units in numpy datetime64 dtypes.

### Fixed

- Adapt to change in dask public API in dask 2024.9.0.

## v0.1.0b8 (2024-09-06)

### Fixed
Expand Down
11 changes: 9 additions & 2 deletions tiled/server/etag.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
from dask.base import normalize_object, normalize_token
from dask.base import tokenize as dask_tokenize
import importlib.util

if importlib.util.find_spec("dask.tokenize"):
# moved in dask version 2024.9.0
from dask.tokenize import normalize_object, normalize_token
from dask.tokenize import tokenize as dask_tokenize
else:
from dask.base import normalize_object, normalize_token
from dask.base import tokenize as dask_tokenize


def tokenize(obj):
Expand Down

0 comments on commit c7caf8b

Please sign in to comment.