Skip to content

Commit

Permalink
Use new blockwise unpack collection in array (#1173)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau authored Dec 4, 2024
1 parent daef4a2 commit 77d0f89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dask_expr/array/blockwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
)
from dask.array.utils import compute_meta
from dask.base import is_dask_collection
from dask.blockwise import _blockwise_unpack_collections_task_spec
from dask.blockwise import blockwise as core_blockwise
from dask.delayed import unpack_collections
from dask.tokenize import tokenize
from dask.utils import cached_property, funcname

Expand Down Expand Up @@ -142,7 +142,7 @@ def _layer(self):
for arg, ind in arginds:
if ind is None:
arg = normalize_arg(arg)
arg, collections = unpack_collections(arg)
arg, collections = _blockwise_unpack_collections_task_spec(arg)
dependencies.extend(collections)
else:
if (
Expand All @@ -163,7 +163,7 @@ def _layer(self):
kwargs2 = {}
for k, v in self.kwargs.items():
v = normalize_arg(v)
v, collections = unpack_collections(v)
v, collections = _blockwise_unpack_collections_task_spec(v)
dependencies.extend(collections)
kwargs2[k] = v

Expand Down

0 comments on commit 77d0f89

Please sign in to comment.