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"