Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ preprocess
Function
preprocess
dask/array/tests/test_image.py:48–50 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
46
47
def
test_preprocess():
48
def
preprocess(x):
49
x[:] = 1
50
return
x[:, :, 0]
51
52
with
random_images(4, (2, 3, 4))
as
globstring:
53
im = da_imread(globstring, preprocess=preprocess)
Callers
1
imread
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected