tensorstore.IndexDomain.ndim : int

Alias for rank.

Example

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