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

Function test_nonfusible_fancy_indexing

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

Source from the content-addressed store, hash-verified

94
95
96def test_nonfusible_fancy_indexing():
97 nil = slice(None)
98 cases = [ # x[:, list, :][int, :, :]
99 ((nil, [1, 2, 3], nil), (0, nil, nil)),
100 # x[int, :, :][:, list, :]
101 ((0, nil, nil), (nil, [1, 2, 3], nil)),
102 # x[:, list, :, :][:, :, :, int]
103 ((nil, [1, 2], nil, nil), (nil, nil, nil, 0)),
104 ]
105
106 for a, b in cases:
107 with pytest.raises(NotImplementedError):
108 fuse_slice(a, b)
109
110
111def test_dont_fuse_numpy_arrays():

Callers

nothing calls this directly

Calls 1

fuse_sliceFunction · 0.90

Tested by

no test coverage detected