- tensorstore.IndexDomain.__getitem__(self, identifier: int | str) Dim
Returns the single dimension specified by
identifier
.- Parameters:¶
Examples
>>> domain = ts.IndexDomain(inclusive_min=[1, 2, 3], ... exclusive_max=[4, 5, 6], ... labels=['x', 'y', 'z']) >>> domain[0] Dim(inclusive_min=1, exclusive_max=4, label="x") >>> domain['y'] Dim(inclusive_min=2, exclusive_max=5, label="y") >>> domain[-1] Dim(inclusive_min=3, exclusive_max=6, label="z")