From cdec4782f04eb95d0e30d1678b6c31c5d12955c6 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 22 Dec 2022 13:11:38 -0500 Subject: [PATCH] Add commented append slice-len sanity check --- piker/data/_formatters.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/piker/data/_formatters.py b/piker/data/_formatters.py index ebeb83fb..ccb8d315 100644 --- a/piker/data/_formatters.py +++ b/piker/data/_formatters.py @@ -330,6 +330,9 @@ class IncrementalFormatter(msgspec.Struct): ) self.xy_nd_stop += append_len profiler('appened xy history: {append_length}') + # sanity + # slice_ln = post_slice.stop - post_slice.start + # assert append_len == slice_ln view_changed: bool = False view_range: tuple[int, int] = (ivl, ivr)