tensorstore.Spec.dtype : dtype | None

Data type, or None if unspecified.

Example

>>> spec = ts.Spec({'driver': 'n5', 'kvstore': {'driver': 'memory'}})
>>> print(spec.dtype)
None
>>> spec = ts.Spec({
...     'driver': 'n5',
...     'kvstore': {
...         'driver': 'memory'
...     },
...     'metadata': {
...         'dataType': 'uint8'
...     }
... })
>>> spec.dtype
dtype("uint8")