MCPcopy Index your code
hub / github.com/dask/dask / custom_scheduler_get

Function custom_scheduler_get

dask/array/tests/test_xarray.py:101–106  ·  view source on GitHub ↗
(dsk, keys, expected, **kwargs)

Source from the content-addressed store, hash-verified

99 pytest.importorskip("zarr")
100
101 def custom_scheduler_get(dsk, keys, expected, **kwargs):
102 dsk = dsk.__dask_graph__()
103 assert (
104 len(dsk) == expected
105 ), f"False number of tasks got {len(dsk)} but expected {expected}"
106 return [42 for _ in keys]
107
108 # First test that this mocking stuff works as expected
109 with pytest.raises(AssertionError, match="False number of tasks"):

Callers

nothing calls this directly

Calls 1

__dask_graph__Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…