Skip to content

Commit

Permalink
Add (shm) abs index to ContextLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Dec 15, 2023
1 parent ba154ef commit afd0781
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion piker/ui/_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,10 @@ def update_from_ohlc(
# 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/>"
Expand All @@ -219,6 +220,7 @@ def update_from_ohlc(
# "<b>wap</b>:{}".format(
*array[ix][
[
'index',
'time',
'open',
'high',
Expand Down

0 comments on commit afd0781

Please sign in to comment.