tensorstore.TensorStore.codec : CodecSpec | None

Data codec spec.

This may be used to create a new TensorStore with the same codec.

Equal to None if the codec is unknown or not applicable.

Example

>>> store = await ts.open(
...     {
...         'driver': 'zarr',
...         'kvstore': {
...             'driver': 'memory'
...         }
...     },
...     create=True,
...     shape=[100],
...     dtype=ts.uint32)
>>> store.codec
CodecSpec({
  'compressor': {
    'blocksize': 0,
    'clevel': 5,
    'cname': 'lz4',
    'id': 'blosc',
    'shuffle': -1,
  },
  'driver': 'zarr',
  'filters': None,
})