From 8a295eba5127f5d42107b4df55d1a15f264bc368 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 8 Dec 2022 11:00:06 -0500 Subject: [PATCH] Drop passing `render_data` to `Curve.draw_last_datum()` --- piker/ui/_curve.py | 7 ++----- piker/ui/_ohlc.py | 1 - piker/ui/_render.py | 3 --- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/piker/ui/_curve.py b/piker/ui/_curve.py index cb696257..065887af 100644 --- a/piker/ui/_curve.py +++ b/piker/ui/_curve.py @@ -360,7 +360,6 @@ class Curve(pg.GraphicsObject): self, path: QPainterPath, src_data: np.ndarray, - render_data: np.ndarray, reset: bool, array_key: str, index_field: str, @@ -368,8 +367,8 @@ class Curve(pg.GraphicsObject): ) -> None: # default line draw last call # with self.reset_cache(): - x = render_data[index_field] - y = render_data[array_key] + x = src_data[index_field] + y = src_data[array_key] # draw the "current" step graphic segment so it # lines up with the "middle" of the current @@ -392,7 +391,6 @@ class FlattenedOHLC(Curve): self, path: QPainterPath, src_data: np.ndarray, - render_data: np.ndarray, reset: bool, array_key: str, index_field: str, @@ -423,7 +421,6 @@ class StepCurve(Curve): self, path: QPainterPath, src_data: np.ndarray, - render_data: np.ndarray, reset: bool, array_key: str, index_field: str, diff --git a/piker/ui/_ohlc.py b/piker/ui/_ohlc.py index a7e36146..d935bd5c 100644 --- a/piker/ui/_ohlc.py +++ b/piker/ui/_ohlc.py @@ -221,7 +221,6 @@ class BarItems(pg.GraphicsObject): self, path: QPainterPath, src_data: np.ndarray, - render_data: np.ndarray, reset: bool, array_key: str, index_field: str, diff --git a/piker/ui/_render.py b/piker/ui/_render.py index 1e77ce03..9f03c189 100644 --- a/piker/ui/_render.py +++ b/piker/ui/_render.py @@ -733,7 +733,6 @@ class Viz(msgspec.Struct): # , frozen=True): # # graphics.draw_last_datum( # # path, # # src_array, - # # data, # # reset, # # array_key, # # ) @@ -747,7 +746,6 @@ class Viz(msgspec.Struct): # , frozen=True): graphics.draw_last_datum( path, src_array, - data, reset, array_key, index_field=self.index_field, @@ -785,7 +783,6 @@ class Viz(msgspec.Struct): # , frozen=True): x, y = g.draw_last_datum( g.path, src_array, - src_array, False, # never reset path array_key, self.index_field,