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

Function test_apply_ufunc_check_meta_coherence

xarray/tests/test_sparse.py:912–920  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

910
911@requires_dask
912def test_apply_ufunc_check_meta_coherence():
913 s = sparse.COO.from_numpy(np.array([0, 0, 1, 2]))
914 a = DataArray(s)
915 ac = a.chunk(2)
916 sparse_meta = ac.data._meta
917
918 result = xr.apply_ufunc(lambda x: x, ac, dask="parallelized").data._meta
919
920 assert_sparse_equal(result, sparse_meta)

Callers

nothing calls this directly

Calls 3

chunkMethod · 0.95
DataArrayClass · 0.90
assert_sparse_equalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…