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

Method map_blocks

xarray/namedarray/daskmanager.py:174–195  ·  view source on GitHub ↗
(
        self,
        func: Callable[..., Any],
        *args: Any,
        dtype: _DType_co | None = None,
        chunks: tuple[int, ...] | None = None,
        drop_axis: int | Sequence[int] | None = None,
        new_axis: int | Sequence[int] | None = None,
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

172 ) # type: ignore[no-untyped-call]
173
174 def map_blocks(
175 self,
176 func: Callable[..., Any],
177 *args: Any,
178 dtype: _DType_co | None = None,
179 chunks: tuple[int, ...] | None = None,
180 drop_axis: int | Sequence[int] | None = None,
181 new_axis: int | Sequence[int] | None = None,
182 **kwargs: Any,
183 ) -> Any:
184 from dask.array import map_blocks
185
186 # pass through name, meta, token as kwargs
187 return map_blocks(
188 func,
189 *args,
190 dtype=dtype,
191 chunks=chunks,
192 drop_axis=drop_axis,
193 new_axis=new_axis,
194 **kwargs,
195 ) # type: ignore[no-untyped-call]
196
197 def blockwise(
198 self,

Callers

nothing calls this directly

Calls 1

map_blocksFunction · 0.90

Tested by

no test coverage detected