From 59d4535bc7c290aa5345a040ac4b4f63a1be94aa Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 22 Jan 2023 15:31:26 -0500 Subject: [PATCH] Drop `update_graphics_from_flow()` --- piker/ui/_chart.py | 18 ------------------ piker/ui/_fsp.py | 4 +--- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index 7faa67fd..07be4e20 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -1287,24 +1287,6 @@ class ChartPlotWidget(pg.PlotWidget): **draw_curve_kwargs, ) - def update_graphics_from_flow( - self, - graphics_name: str, - array_key: Optional[str] = None, - - **kwargs, - - ) -> pg.GraphicsObject: - ''' - Update the named internal graphics from ``array``. - - ''' - viz = self._vizs[array_key or graphics_name] - return viz.update_graphics( - array_key=array_key, - **kwargs, - ) - # TODO: pretty sure we can just call the cursor # directly not? i don't wee why we need special "signal proxies" # for this lul.. diff --git a/piker/ui/_fsp.py b/piker/ui/_fsp.py index cad5d904..9e7da92b 100644 --- a/piker/ui/_fsp.py +++ b/piker/ui/_fsp.py @@ -707,9 +707,7 @@ async def open_vlm_displays( last_val_sticky.update_from_data(-1, value) - _, vlm_curve = vlm_chart.update_graphics_from_flow( - 'volume', - ) + _, vlm_curve = vlm_viz.update_graphics() # size view to data once at outset vlm_chart.view._set_yrange(