MCPcopy Create free account
hub / github.com/pydata/xarray / parallel_identity

Function parallel_identity

xarray/tests/test_computation.py:1219–1220  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1217 data_array = xr.DataArray(array, dims=("x", "y"))
1218
1219 def parallel_identity(x):
1220 return apply_ufunc(identity, x, dask="parallelized", output_dtypes=[x.dtype])
1221
1222 actual = parallel_identity(data_array)
1223 assert isinstance(actual.data, da.Array)

Callers 1

Calls 1

apply_ufuncFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…