Flip over to epoch-time based x-domain indexing

epoch_indexing_and_dataviz_layer
Tyler Goodlet 2022-12-04 17:01:22 -05:00
parent 12857a258b
commit 0bdb7261d1
2 changed files with 4 additions and 4 deletions

View File

@ -126,7 +126,7 @@ def path_arrays_from_ohlc(
high = q['high']
low = q['low']
close = q['close']
index = float64(q['index'])
index = float64(q['time'])
# XXX: ``numba`` issue: https://github.com/numba/numba/issues/8622
# index = float64(q[index_field])
@ -380,8 +380,8 @@ def slice_from_time(
read_slc = slice(*read_slc_tuple)
profiler(
'slicing complete'
f'{start_t} -> {abs_slc.start} | {read_slc.start}\n'
f'{stop_t} -> {abs_slc.stop} | {read_slc.stop}\n'
# f'{start_t} -> {abs_slc.start} | {read_slc.start}\n'
# f'{stop_t} -> {abs_slc.stop} | {read_slc.stop}\n'
)
return (
abs_slc,

View File

@ -231,7 +231,7 @@ class Viz(msgspec.Struct): # , frozen=True):
is_ohlc: bool = False
render: bool = True # toggle for display loop
_index_field: str = 'index'
_index_field: str = 'time'
# downsampling state
_last_uppx: float = 0