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

Function test_imread_with_custom_function

dask/array/tests/test_image.py:38–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def test_imread_with_custom_function():
39 def imread2(fn):
40 return np.ones((2, 3, 4), dtype="i1")
41
42 with random_images(4, (5, 6, 3)) as globstring:
43 im = da_imread(globstring, imread=imread2)
44 assert (im.compute() == np.ones((4, 2, 3, 4), dtype="u1")).all()
45
46
47def test_preprocess():

Callers

nothing calls this directly

Calls 4

random_imagesFunction · 0.85
allMethod · 0.45
computeMethod · 0.45
onesMethod · 0.45

Tested by

no test coverage detected