- tensorstore.Spec.__repr__(self) str
Returns a string representation based on the
JSON representation
.Example
>>> spec = ts.Spec({'driver': 'n5', 'kvstore': {'driver': 'memory'}}) >>> spec Spec({'driver': 'n5', 'kvstore': {'driver': 'memory'}})
Bound
context resources
are indicated by single-element arrays:>>> spec.update(context=ts.Context()) >>> spec Spec({ 'cache_pool': ['cache_pool'], 'context': { 'cache_pool': {}, 'data_copy_concurrency': {}, 'memory_key_value_store': {}, }, 'data_copy_concurrency': ['data_copy_concurrency'], 'driver': 'n5', 'kvstore': { 'driver': 'memory', 'memory_key_value_store': ['memory_key_value_store'], }, })