MCPcopy Create free account
hub / github.com/dask/dask / test_gh3937

Function test_gh3937

dask/array/tests/test_optimization.py:200–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198
199
200def test_gh3937():
201 # test for github issue #3937
202 x = da.from_array([1, 2, 3.0], (2,))
203 x = da.concatenate((x, [x[-1]]))
204 y = x.rechunk((2,))
205 # This will produce Integral type indices that are not ints (np.int64), failing
206 # the optimizer
207 y = da.coarsen(np.sum, y, {0: 2})
208 # How to trigger the optimizer explicitly?
209 y.compute()
210
211
212def test_double_dependencies():

Callers

nothing calls this directly

Calls 2

rechunkMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected