MCPcopy
hub / github.com/dask/dask / test_is_arraylike

Function test_is_arraylike

dask/tests/test_utils.py:713–724  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

711
712
713def test_is_arraylike():
714 np = pytest.importorskip("numpy")
715
716 assert is_arraylike(0) is False
717 assert is_arraylike(()) is False
718 assert is_arraylike(0) is False
719 assert is_arraylike([]) is False
720 assert is_arraylike([0]) is False
721
722 assert is_arraylike(np.empty(())) is True
723 assert is_arraylike(np.empty((0,))) is True
724 assert is_arraylike(np.empty((0, 0))) is True
725
726
727def test_iter_chunks():

Callers

nothing calls this directly

Calls 2

is_arraylikeFunction · 0.90
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…