tensorstore.Spec.open_mode : OpenMode

Open mode with which the driver will be opened.

If not applicable, equal to OpenMode().

Example

>>> spec = ts.Spec({'driver': 'zarr', 'kvstore': 'memory://'})
>>> spec.open_mode
OpenMode(open=True)
>>> spec.update(create=True, delete_existing=True)
>>> spec.open_mode
OpenMode(create=True, delete_existing=True)
>>> spec.update(open_mode=ts.OpenMode(open=True, create=True))
>>> spec.open_mode
OpenMode(open=True, create=True)

Note

This is a read-only accessor. Mutating the returned OpenMode object does not affect this Spec object. To change the open mode, use update.