From d770867163b1e240ce24472d0545cc9ac25b3dec Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 2 Jun 2022 13:38:14 -0400 Subject: [PATCH] Drop width arg to bar lines factory --- piker/ui/_flows.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/piker/ui/_flows.py b/piker/ui/_flows.py index e0cc21f8..c5e813ea 100644 --- a/piker/ui/_flows.py +++ b/piker/ui/_flows.py @@ -254,6 +254,7 @@ def render_baritems( src_data: np.ndarray, render_data: np.ndarray, reset: bool, + ) -> None: lasts = src_data[-2:] x = lasts['index'] @@ -276,10 +277,12 @@ def render_baritems( src_data: np.ndarray, render_data: np.ndarray, reset: bool, + ) -> None: last = src_data[-1] + # generate new lines objects for updatable "current bar" - graphics._last_bar_lines = bar_from_ohlc_row(last, graphics.w) + graphics._last_bar_lines = bar_from_ohlc_row(last) # last bar update i, o, h, l, last, v = last[