Flip over to epoch-time based x-domain indexing
parent
d895684235
commit
d0a0a4b4dd
|
@ -126,7 +126,7 @@ def path_arrays_from_ohlc(
|
||||||
high = q['high']
|
high = q['high']
|
||||||
low = q['low']
|
low = q['low']
|
||||||
close = q['close']
|
close = q['close']
|
||||||
index = float64(q['index'])
|
index = float64(q['time'])
|
||||||
|
|
||||||
# XXX: ``numba`` issue: https://github.com/numba/numba/issues/8622
|
# XXX: ``numba`` issue: https://github.com/numba/numba/issues/8622
|
||||||
# index = float64(q[index_field])
|
# index = float64(q[index_field])
|
||||||
|
@ -380,8 +380,8 @@ def slice_from_time(
|
||||||
read_slc = slice(*read_slc_tuple)
|
read_slc = slice(*read_slc_tuple)
|
||||||
profiler(
|
profiler(
|
||||||
'slicing complete'
|
'slicing complete'
|
||||||
f'{start_t} -> {abs_slc.start} | {read_slc.start}\n'
|
# f'{start_t} -> {abs_slc.start} | {read_slc.start}\n'
|
||||||
f'{stop_t} -> {abs_slc.stop} | {read_slc.stop}\n'
|
# f'{stop_t} -> {abs_slc.stop} | {read_slc.stop}\n'
|
||||||
)
|
)
|
||||||
return (
|
return (
|
||||||
abs_slc,
|
abs_slc,
|
||||||
|
|
|
@ -231,7 +231,7 @@ class Viz(msgspec.Struct): # , frozen=True):
|
||||||
is_ohlc: bool = False
|
is_ohlc: bool = False
|
||||||
render: bool = True # toggle for display loop
|
render: bool = True # toggle for display loop
|
||||||
|
|
||||||
_index_field: str = 'index'
|
_index_field: str = 'time'
|
||||||
|
|
||||||
# downsampling state
|
# downsampling state
|
||||||
_last_uppx: float = 0
|
_last_uppx: float = 0
|
||||||
|
|
Loading…
Reference in New Issue