MCPcopy Index your code
hub / github.com/dask/dask / shapelist

Function shapelist

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

Get the shape of nested list

(a)

Source from the content-addressed store, hash-verified

5474
5475
5476def shapelist(a):
5477 """Get the shape of nested list"""
5478 if type(a) is list:
5479 return tuple([len(a)] + list(shapelist(a[0])))
5480 else:
5481 return ()
5482
5483
5484def transposelist(arrays, axes, extradims=0):

Callers 1

transposelistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…