tensorstore.Schema.oindex[self, indices: NumpyIndexingSpec] Schema

Transforms the schema using NumPy-style indexing with outer indexing semantics.

This is similar to __getitem__(indices), but differs in that any integer or boolean array indexing terms are applied orthogonally.

Example

>>> schema = ts.Schema(
...     domain=ts.IndexDomain(labels=['x', 'y', 'z'],
...                           shape=[1000, 2000, 3000]),
...     chunk_layout=ts.ChunkLayout(grid_origin=[100, 200, 300],
...                                 inner_order=[0, 1, 2]),
... )
>>> schema.oindex[[5, 10, 20], [7, 8, 10]]
Schema({
  'chunk_layout': {'grid_origin': [None, None, 300], 'inner_order': [2, 0, 1]},
  'domain': {
    'exclusive_max': [3, 3, 3000],
    'inclusive_min': [0, 0, 0],
    'labels': ['', '', 'z'],
  },
  'rank': 3,
})
Returns:

New schema with the indexing operation applied.

Raises:

ValueError – If self.rank is None.