From 629ea8ba9d9c7dcbb0b6d955a7c6d75023484e39 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 24 Apr 2022 17:09:30 -0400 Subject: [PATCH] Downsample on every uppx inrement since it's way faster --- piker/ui/_curve.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/piker/ui/_curve.py b/piker/ui/_curve.py index e2803549..cf987203 100644 --- a/piker/ui/_curve.py +++ b/piker/ui/_curve.py @@ -259,7 +259,7 @@ class FastAppendCurve(pg.GraphicsObject): y, px_width=px_width, uppx=uppx, - log_scale=bool(uppx) + # log_scale=bool(uppx) ) x = np.broadcast_to(x[:, None], y.shape) # x = (x + np.array([-0.43, 0, 0, 0.43])).flatten() @@ -391,9 +391,9 @@ class FastAppendCurve(pg.GraphicsObject): if ( # std m4 downsample conditions px_width - and uppx_diff >= 4 - or uppx_diff <= -3 - or self._step_mode and abs(uppx_diff) >= 4 + and uppx_diff >= 1 + or uppx_diff <= -1 + or self._step_mode and abs(uppx_diff) >= 2 ): log.info( @@ -460,7 +460,7 @@ class FastAppendCurve(pg.GraphicsObject): self._in_ds = False - elif should_ds and px_width: + elif should_ds and px_width and uppx: x_out, y_out = self.downsample( x_out, y_out,