From 78defa00ec02a7b2701f85d8f60c9843829acc4b Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 15 May 2022 17:06:52 -0400 Subject: [PATCH] Drop old non-working flatten routine --- piker/ui/_flows.py | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/piker/ui/_flows.py b/piker/ui/_flows.py index 70839ca0..d7ebe4e6 100644 --- a/piker/ui/_flows.py +++ b/piker/ui/_flows.py @@ -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,