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

Function test_indices

dask/array/tests/test_creation.py:385–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

383
384
385def test_indices():
386 darr = da.indices((1,), chunks=(1,))
387 nparr = np.indices((1,))
388 assert_eq(darr, nparr)
389
390 darr = da.indices((1,), float, chunks=(1,))
391 nparr = np.indices((1,), float)
392 assert_eq(darr, nparr)
393
394 darr = da.indices((2, 1), chunks=(2, 1))
395 nparr = np.indices((2, 1))
396 assert_eq(darr, nparr)
397
398 darr = da.indices((2, 3), chunks=(1, 2))
399 nparr = np.indices((2, 3))
400 assert_eq(darr, nparr)
401
402
403@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

assert_eqFunction · 0.90

Tested by

no test coverage detected