def test_dask_layers_and_dependencies(): ds = Dataset({'foo': ('x', range(5)), 'bar': ('x', range(5))}).chunk() x = dask.delayed(ds) assert set(x.__dask_graph__().dependencies).issuperset( ds.__dask_graph__().dependencies) assert set(x.foo.__dask_graph__().dependencies).issuperset( ds.__dask_graph__().dependencies)
def test_dask_layers_and_dependencies(): ds = Dataset({"foo": ("x", range(5)), "bar": ("x", range(5))}).chunk() x = dask.delayed(ds) assert set(x.__dask_graph__().dependencies).issuperset( ds.__dask_graph__().dependencies) assert set(x.foo.__dask_graph__().dependencies).issuperset( ds.__dask_graph__().dependencies)