Add (shm) abs index to `ContextLabel`

distribute_dis
Tyler Goodlet 2023-12-15 13:57:10 -05:00
parent ba154ef413
commit afd0781b62
1 changed files with 3 additions and 1 deletions

View File

@ -207,9 +207,10 @@ class ContentsLabel(pg.LabelItem):
# this being "html" is the dumbest shit :eyeroll:
self.setText(
"<b>i</b>:{index}<br/>"
"<b>i_arr</b>:{index}<br/>"
# NB: these fields must be indexed in the correct order via
# the slice syntax below.
"<b>i_shm</b>:{}<br/>"
"<b>epoch</b>:{}<br/>"
"<b>O</b>:{}<br/>"
"<b>H</b>:{}<br/>"
@ -219,6 +220,7 @@ class ContentsLabel(pg.LabelItem):
# "<b>wap</b>:{}".format(
*array[ix][
[
'index',
'time',
'open',
'high',