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

Function test_push_dask

xarray/tests/test_duck_array_ops.py:1132–1144  ·  view source on GitHub ↗
(method, arr)

Source from the content-addressed store, hash-verified

1130 ],
1131)
1132def test_push_dask(method, arr):
1133 import bottleneck
1134 import dask.array as da
1135
1136 arr = np.array(arr)
1137 chunks = list(range(1, 11)) + [(1, 2, 3, 2, 2, 1, 1)]
1138
1139 for n in [None, 1, 2, 3, 4, 5, 11]:
1140 expected = bottleneck.push(arr, axis=0, n=n)
1141 for c in chunks:
1142 with raise_if_dask_computes():
1143 actual = push(da.from_array(arr, chunks=c), axis=0, n=n, method=method)
1144 np.testing.assert_equal(actual, expected)
1145
1146
1147def test_extension_array_equality(categorical1, int1):

Callers

nothing calls this directly

Calls 3

raise_if_dask_computesFunction · 0.90
pushFunction · 0.90
from_arrayMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…