Skip to content

Commit 77d0f89

Browse files
authored
Use new blockwise unpack collection in array (#1173)
1 parent daef4a2 commit 77d0f89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dask_expr/array/blockwise.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
)
1818
from dask.array.utils import compute_meta
1919
from dask.base import is_dask_collection
20+
from dask.blockwise import _blockwise_unpack_collections_task_spec
2021
from dask.blockwise import blockwise as core_blockwise
21-
from dask.delayed import unpack_collections
2222
from dask.tokenize import tokenize
2323
from dask.utils import cached_property, funcname
2424

@@ -142,7 +142,7 @@ def _layer(self):
142142
for arg, ind in arginds:
143143
if ind is None:
144144
arg = normalize_arg(arg)
145-
arg, collections = unpack_collections(arg)
145+
arg, collections = _blockwise_unpack_collections_task_spec(arg)
146146
dependencies.extend(collections)
147147
else:
148148
if (
@@ -163,7 +163,7 @@ def _layer(self):
163163
kwargs2 = {}
164164
for k, v in self.kwargs.items():
165165
v = normalize_arg(v)
166-
v, collections = unpack_collections(v)
166+
v, collections = _blockwise_unpack_collections_task_spec(v)
167167
dependencies.extend(collections)
168168
kwargs2[k] = v
169169

0 commit comments

Comments
 (0)