()
| 36 | |
| 37 | |
| 38 | def 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 | |
| 47 | def test_preprocess(): |
nothing calls this directly
no test coverage detected