MCPcopy
hub / github.com/pydata/xarray / from_array

Method from_array

xarray/tests/test_parallelcompat.py:83–88  ·  view source on GitHub ↗
(
        self, data: T_DuckArray | np.typing.ArrayLike, chunks: _Chunks, **kwargs
    )

Source from the content-addressed store, hash-verified

81 return normalize_chunks(chunks, shape, limit, dtype, previous_chunks)
82
83 def from_array(
84 self, data: T_DuckArray | np.typing.ArrayLike, chunks: _Chunks, **kwargs
85 ) -> DummyChunkedArray:
86 from dask import array as da
87
88 return da.from_array(data, chunks, **kwargs)
89
90 def rechunk(self, data: DummyChunkedArray, chunks, **kwargs) -> DummyChunkedArray:
91 return data.rechunk(chunks, **kwargs)

Calls

no outgoing calls

Tested by

no test coverage detected