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

Function test_optimize_with_getitem_fusion

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

Source from the content-addressed store, hash-verified

41
42
43def test_optimize_with_getitem_fusion():
44 dsk = {
45 "a": "some-array",
46 "b": (getter, "a", (slice(10, 20), slice(100, 200))),
47 "c": (getter, "b", (5, slice(50, 60))),
48 }
49
50 result = optimize(dsk, ["c"])
51 assert isinstance(result["c"], Alias)
52 assert len(result) < len(dsk)
53
54
55def test_fuse_slice():

Callers

nothing calls this directly

Calls 1

optimizeFunction · 0.90

Tested by

no test coverage detected