We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2294cf commit 944abc6Copy full SHA for 944abc6
funlib/persistence/arrays/array.py
@@ -69,7 +69,10 @@ def __init__(
69
chunks: Optional[Union[int, Sequence[int], str]] = "auto",
70
lazy_op: Optional[LazyOp] = None,
71
):
72
- self.data = da.from_array(data, chunks=chunks)
+ if not isinstance(data, da.Array):
73
+ self.data = da.from_array(data, chunks=chunks)
74
+ else:
75
+ self.data = data
76
self._uncollapsed_dims = [True for _ in self.data.shape]
77
self._source_data = data
78
self._metadata = MetaData(
0 commit comments