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

Function test_create_with_auto_dimensions

dask/array/tests/test_random.py:375–381  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

373
374
375def test_create_with_auto_dimensions():
376 with dask.config.set({"array.chunk-size": "128MiB"}):
377 x = da.random.random((10000, 10000), chunks=(-1, "auto"))
378 assert x.chunks == ((10000,), (1677,) * 5 + (1615,))
379
380 y = da.random.random((10000, 10000), chunks="auto")
381 assert y.chunks == ((4096, 4096, 1808),) * 2
382
383
384def test_names():

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
randomMethod · 0.45

Tested by

no test coverage detected