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

Method from_array

xarray/namedarray/daskmanager.py:65–78  ·  view source on GitHub ↗
(
        self, data: Any, chunks: T_Chunks | _NormalizedChunks, **kwargs: Any
    )

Source from the content-addressed store, hash-verified

63 ) # type: ignore[no-untyped-call]
64
65 def from_array(
66 self, data: Any, chunks: T_Chunks | _NormalizedChunks, **kwargs: Any
67 ) -> DaskArray | Any:
68 import dask.array as da
69
70 if isinstance(data, ImplicitToExplicitIndexingAdapter):
71 # lazily loaded backend array classes should use NumPy array operations.
72 kwargs["meta"] = np.ndarray
73
74 return da.from_array(
75 data,
76 chunks,
77 **kwargs,
78 ) # type: ignore[no-untyped-call]
79
80 def compute(
81 self, *data: Any, **kwargs: Any

Callers 4

least_squaresFunction · 0.45
chunkMethod · 0.45
_calc_idxminmaxFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected