tensorstore.Schema.copy(self) Schema

Returns a copy of the schema.

Example

>>> a = ts.Schema(dtype=ts.uint8)
>>> b = a.copy()
>>> a.update(rank=2)
>>> b.update(rank=3)
>>> a
Schema({'dtype': 'uint8', 'rank': 2})
>>> b
Schema({'dtype': 'uint8', 'rank': 3})