From 8eb4a427dacd06298f8dcb9df7b08103feb5be9b Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 10 Jun 2022 07:02:32 -0400 Subject: [PATCH] Revert uppx flooring, causes shift issues --- piker/ui/_display.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/piker/ui/_display.py b/piker/ui/_display.py index 031806e7..9ad59e30 100644 --- a/piker/ui/_display.py +++ b/piker/ui/_display.py @@ -24,7 +24,6 @@ graphics update methods via our custom ``pyqtgraph`` charting api. from dataclasses import dataclass from functools import partial import time -from math import floor from typing import Optional, Any, Callable import numpy as np @@ -368,7 +367,7 @@ def graphics_update_cycle( # such unit steps per pixel (aka uppx). Iow, if the zoom level # is such that a datum(s) update to graphics wouldn't span # to a new pixel, we don't update yet. - do_append = (append_diff >= floor(uppx)) + do_append = (append_diff >= uppx) if do_append: vars['i_last_append'] = i_step