MCPcopy
hub / github.com/dask/dask / ndimlist

Function ndimlist

dask/utils.py:1904–1910  ·  view source on GitHub ↗
(seq)

Source from the content-addressed store, hash-verified

1902
1903
1904def ndimlist(seq):
1905 if not isinstance(seq, (list, tuple)):
1906 return 0
1907 elif not seq:
1908 return 1
1909 else:
1910 return 1 + ndimlist(seq[0])
1911
1912
1913def iter_chunks(sizes, max_size):

Callers 3

transposelistFunction · 0.90
concatenate3Function · 0.90
concatenate_axesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…