tensorstore.IndexDomain.rank : int

Number of dimensions in the index space.

Example

>>> domain = ts.IndexDomain(shape=[100, 200, 300])
>>> domain.rank
3