()
| 910 | |
| 911 | @requires_dask |
| 912 | def 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) |
nothing calls this directly
no test coverage detected
searching dependent graphs…