MCPcopy Index your code
hub / github.com/pydata/xarray / reshape_blockwise

Function reshape_blockwise

xarray/compat/dask_array_compat.py:6–16  ·  view source on GitHub ↗
(
    x: Any,
    shape: int | tuple[int, ...],
    chunks: tuple[tuple[int, ...], ...] | None = None,
)

Source from the content-addressed store, hash-verified

4
5
6def reshape_blockwise(
7 x: Any,
8 shape: int | tuple[int, ...],
9 chunks: tuple[tuple[int, ...], ...] | None = None,
10):
11 if module_available("dask", "2024.08.2"):
12 from dask.array import reshape_blockwise
13
14 return reshape_blockwise(x, shape=shape, chunks=chunks)
15 else:
16 return x.reshape(shape)
17
18
19def sliding_window_view(

Callers 1

least_squaresFunction · 0.90

Calls 1

module_availableFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…