Skip to content

Commit 944abc6

Browse files
committed
pass test building arrays from dask arrays
1 parent f2294cf commit 944abc6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

funlib/persistence/arrays/array.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ def __init__(
6969
chunks: Optional[Union[int, Sequence[int], str]] = "auto",
7070
lazy_op: Optional[LazyOp] = None,
7171
):
72-
self.data = da.from_array(data, chunks=chunks)
72+
if not isinstance(data, da.Array):
73+
self.data = da.from_array(data, chunks=chunks)
74+
else:
75+
self.data = data
7376
self._uncollapsed_dims = [True for _ in self.data.shape]
7477
self._source_data = data
7578
self._metadata = MetaData(

0 commit comments

Comments
 (0)