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

Function shapelist

dask/array/core.py:5471–5476  ·  view source on GitHub ↗

Get the shape of nested list

(a)

Source from the content-addressed store, hash-verified

5469
5470
5471def shapelist(a):
5472 """Get the shape of nested list"""
5473 if type(a) is list:
5474 return tuple([len(a)] + list(shapelist(a[0])))
5475 else:
5476 return ()
5477
5478
5479def transposelist(arrays, axes, extradims=0):

Callers 1

transposelistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected