From e7dc1a036bf34d39b67c924d9cb35570cb836603 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 11 Mar 2022 13:24:07 -0500 Subject: [PATCH] Original index offset was right --- piker/ui/_compression.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/piker/ui/_compression.py b/piker/ui/_compression.py index 7747f249..d86c882e 100644 --- a/piker/ui/_compression.py +++ b/piker/ui/_compression.py @@ -59,9 +59,9 @@ def hl2mxmn( mxmn = np.empty(2*hls.size, dtype=np.float64) x = np.empty(2*hls.size, dtype=np.float64) trace_hl(hls, mxmn, x, index[0]) - x = x + index[0] - 1 + x = x + index[0] - if not downsample_by > 2: + if downsample_by < 2: return mxmn, x dsx, dsy = downsample( @@ -70,6 +70,7 @@ def hl2mxmn( bins=downsample_by, ) log.info(f'downsampling by {downsample_by}') + print(f'downsampling by {downsample_by}') return dsy, dsx