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

Function test_imread

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

Source from the content-addressed store, hash-verified

25
26
27def test_imread():
28 with random_images(4, (5, 6, 3)) as globstring:
29 im = da_imread(globstring)
30 assert im.shape == (4, 5, 6, 3)
31 assert im.chunks == ((1, 1, 1, 1), (5,), (6,), (3,))
32 assert im.dtype == "uint8"
33
34 assert im.compute().shape == (4, 5, 6, 3)
35 assert im.compute().dtype == "uint8"
36
37
38def test_imread_with_custom_function():

Callers

nothing calls this directly

Calls 2

random_imagesFunction · 0.85
computeMethod · 0.45

Tested by

no test coverage detected