Delegate formatter `.index_field` to the parent `Viz`

epoch_indexing_and_dataviz_layer
Tyler Goodlet 2022-12-02 19:58:19 -05:00
parent bf88b40a50
commit d5844ce8ff
1 changed files with 10 additions and 1 deletions

View File

@ -54,7 +54,16 @@ class IncrementalFormatter(msgspec.Struct):
'''
shm: ShmArray
viz: Viz
index_field: str = 'index'
@property
def index_field(self) -> 'str':
'''
Value (``str``) used to look up the "index series" from the
underlying source ``numpy`` struct-array; delegate directly to
the managing ``Viz``.
'''
return self.viz.index_field
# Incrementally updated xy ndarray formatted data, a pre-1d
# format which is updated and cached independently of the final