From 89e2e7fc54fff14fd56e998d3ebb626792145336 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 22 Jan 2023 15:45:56 -0500 Subject: [PATCH] Adjust `.update_graphics()` to expect `in_view: bool` in `_fsp.py` --- piker/ui/_dataviz.py | 1 - piker/ui/_fsp.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/piker/ui/_dataviz.py b/piker/ui/_dataviz.py index 89e46337..494ef985 100644 --- a/piker/ui/_dataviz.py +++ b/piker/ui/_dataviz.py @@ -1062,7 +1062,6 @@ class Viz(msgspec.Struct): # , frozen=True): else: log.warning(f'Unknown view state {vl} -> {vr}') return - # raise RuntimeError(f'Unknown view state {vl} -> {vr}') else: # maintain the l->r view distance diff --git a/piker/ui/_fsp.py b/piker/ui/_fsp.py index 8fa7fd82..c546ec96 100644 --- a/piker/ui/_fsp.py +++ b/piker/ui/_fsp.py @@ -707,7 +707,7 @@ async def open_vlm_displays( last_val_sticky.update_from_data(-1, value) - _, vlm_curve = vlm_viz.update_graphics() + _, _, vlm_curve = vlm_viz.update_graphics() # size view to data once at outset vlm_chart.view._set_yrange(