tensorstore.IndexDomain(dimensions: Sequence[Dim])

Constructs an index domain from a :py:class`.Dim` sequence.

Parameters:
dimensions: Sequence[Dim]

Sequence of :py:class`.Dim` objects.

Examples

>>> ts.IndexDomain([ts.Dim(5), ts.Dim(6, label='y')])
{ [0, 5), "y": [0, 6) }