tensorstore.Schema.rank : int | None

Rank of the schema, or None if unspecified.

Example

>>> schema = ts.Schema(dtype=ts.uint8)
>>> print(schema.rank)
None
>>> schema.update(chunk_layout=ts.ChunkLayout(grid_origin=[0, 1, 2]))
>>> schema.rank
3