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

Function fn

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

Source from the content-addressed store, hash-verified

604 np = pytest.importorskip("numpy")
605
606 def fn(x, dt):
607 assert type(dt) is np.uint16
608 return x.astype(dt)
609
610 arr = da.blockwise(
611 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