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

Function fn

dask/tests/test_distributed.py:607–609  ·  view source on GitHub ↗
(x, dt)

Source from the content-addressed store, hash-verified

605 np = pytest.importorskip("numpy")
606
607 def fn(x, dt):
608 assert type(dt) is np.uint16
609 return x.astype(dt)
610
611 arr = da.blockwise(
612 fn, "x", da.ones(1000), "x", np.uint16(42), None, dtype=np.uint16

Callers 3

submitMethod · 0.85
coerceFunction · 0.85
coerceFunction · 0.85

Calls 1

astypeMethod · 0.45

Tested by

no test coverage detected