Drop old non-working flatten routine

incremental_update_paths
Tyler Goodlet 2022-05-15 17:06:52 -04:00
parent 5d294031f2
commit 27ee9fdc81
1 changed files with 0 additions and 28 deletions

View File

@ -113,34 +113,6 @@ def rowarr_to_path(
)
def mk_ohlc_flat_copy(
ohlc_shm: ShmArray,
# XXX: we bind this in currently..
# x_basis: np.ndarray,
# vr: Optional[slice] = None,
) -> tuple[np.ndarray, np.ndarray]:
'''
Return flattened-non-copy view into an OHLC shm array.
'''
ohlc = ohlc_shm._array[['open', 'high', 'low', 'close']]
# if vr:
# ohlc = ohlc[vr]
# x = x_basis[vr]
unstructured = rfn.structured_to_unstructured(
ohlc,
copy=False,
)
# breakpoint()
y = unstructured.flatten()
# x = x_basis[:y.size]
return y
def render_baritems(
flow: Flow,
graphics: BarItems,