From 39b1edf84724b405270995dbc9ddc07ec8ac1423 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 11 Mar 2022 16:49:58 -0500 Subject: [PATCH] Array diff lengths must be int --- piker/ui/_curve.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/ui/_curve.py b/piker/ui/_curve.py index 56ac9385..429f4f0a 100644 --- a/piker/ui/_curve.py +++ b/piker/ui/_curve.py @@ -191,8 +191,8 @@ class FastAppendCurve(pg.PlotCurveItem): # compute the length diffs between the first/last index entry in # the input data and the last indexes we have on record from the # last time we updated the curve index. - prepend_length = istart - x[0] - append_length = x[-1] - istop + prepend_length = int(istart - x[0]) + append_length = int(x[-1] - istop) # step mode: draw flat top discrete "step" # over the index space for each datum.