tensorstore.TensorStore.schema : Schema

Schema of this TensorStore.

This schema may be used to create a new TensorStore with the same schema, but possibly using a different driver, storage location, etc.

Example

>>> store = await ts.open(
...     {
...         'driver': 'zarr',
...         'kvstore': {
...             'driver': 'memory'
...         }
...     },
...     create=True,
...     shape=[100],
...     dtype=ts.uint32,
...     fill_value=42)
>>> store.schema
Schema({
  'chunk_layout': {
    'grid_origin': [0],
    'inner_order': [0],
    'read_chunk': {'shape': [100]},
    'write_chunk': {'shape': [100]},
  },
  'codec': {
    'compressor': {
      'blocksize': 0,
      'clevel': 5,
      'cname': 'lz4',
      'id': 'blosc',
      'shuffle': -1,
    },
    'driver': 'zarr',
    'filters': None,
  },
  'domain': {'exclusive_max': [[100]], 'inclusive_min': [0]},
  'dtype': 'uint32',
  'fill_value': 42,
  'rank': 1,
})