From 2a797d32dc390eaf15ef82bf8452ac30883fdf84 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 8 Dec 2022 09:46:52 -0500 Subject: [PATCH] Add back `.default_view()` slice logic for `int` indexing --- piker/ui/_render.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/piker/ui/_render.py b/piker/ui/_render.py index 04a15890..1e77ce03 100644 --- a/piker/ui/_render.py +++ b/piker/ui/_render.py @@ -892,6 +892,8 @@ class Viz(msgspec.Struct): # , frozen=True): stop_t=vr, step=step, ) + else: + read_slc = slice(0, datum_stop - datum_start + 1) index_iv = array[index_field][read_slc] uppx: float = self.graphics.x_uppx() or 1