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

Method apply_gufunc

xarray/namedarray/daskmanager.py:142–172  ·  view source on GitHub ↗
(
        self,
        func: Callable[..., Any],
        signature: str,
        *args: Any,
        axes: Sequence[tuple[int, ...]] | None = None,
        axis: int | None = None,
        keepdims: bool = False,
        output_dtypes: Sequence[_DType_co] | None = None,
        output_sizes: dict[str, int] | None = None,
        vectorize: bool | None = None,
        allow_rechunk: bool = False,
        meta: tuple[np.ndarray[Any, _DType_co], ...] | None = None,
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

140 ) # type: ignore[no-untyped-call]
141
142 def apply_gufunc(
143 self,
144 func: Callable[..., Any],
145 signature: str,
146 *args: Any,
147 axes: Sequence[tuple[int, ...]] | None = None,
148 axis: int | None = None,
149 keepdims: bool = False,
150 output_dtypes: Sequence[_DType_co] | None = None,
151 output_sizes: dict[str, int] | None = None,
152 vectorize: bool | None = None,
153 allow_rechunk: bool = False,
154 meta: tuple[np.ndarray[Any, _DType_co], ...] | None = None,
155 **kwargs: Any,
156 ) -> Any:
157 from dask.array.gufunc import apply_gufunc
158
159 return apply_gufunc(
160 func,
161 signature,
162 *args,
163 axes=axes,
164 axis=axis,
165 keepdims=keepdims,
166 output_dtypes=output_dtypes,
167 output_sizes=output_sizes,
168 vectorize=vectorize,
169 allow_rechunk=allow_rechunk,
170 meta=meta,
171 **kwargs,
172 ) # type: ignore[no-untyped-call]
173
174 def map_blocks(
175 self,

Callers 1

funcFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected