From bc50db59259d5ec9b59c69c69ff2f73c7eef19e7 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 15 May 2022 14:30:13 -0400 Subject: [PATCH] Rename `._ohlc.gen_qpath()` -> `.gen_ohlc_qpath()` --- piker/ui/_flows.py | 4 ++-- piker/ui/_ohlc.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/piker/ui/_flows.py b/piker/ui/_flows.py index bf6fc3f3..bfbe8aea 100644 --- a/piker/ui/_flows.py +++ b/piker/ui/_flows.py @@ -52,7 +52,7 @@ from .._profile import ( ) from ._ohlc import ( BarItems, - gen_qpath, + gen_ohlc_qpath, ) from ._curve import ( FastAppendCurve, @@ -365,7 +365,7 @@ class Flow(msgspec.Struct): # , frozen=True): r = self._src_r = Renderer( flow=self, # TODO: rename this to something with ohlc - draw_path=gen_qpath, + draw_path=gen_ohlc_qpath, last_read=read, ) diff --git a/piker/ui/_ohlc.py b/piker/ui/_ohlc.py index c8da5ba5..efd50e95 100644 --- a/piker/ui/_ohlc.py +++ b/piker/ui/_ohlc.py @@ -156,7 +156,7 @@ def path_arrays_from_ohlc( return x, y, c -def gen_qpath( +def gen_ohlc_qpath( data: np.ndarray, start: int = 0, # XXX: do we need this? # 0.5 is no overlap between arms, 1.0 is full overlap @@ -274,7 +274,7 @@ class BarItems(pg.GraphicsObject): ''' hist, last = ohlc[:-1], ohlc[-1] - self.path = gen_qpath(hist, start, self.w) + self.path = gen_ohlc_qpath(hist, start, self.w) # save graphics for later reference and keep track # of current internal "last index"