From a0fb84f55bba2f48a53ab695ca5669c49e526953 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 21 Jan 2023 22:28:18 -0500 Subject: [PATCH] Just warn log on bad intersect indexing errors (for now) --- piker/ui/_interaction.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/piker/ui/_interaction.py b/piker/ui/_interaction.py index cbec5759..36799383 100644 --- a/piker/ui/_interaction.py +++ b/piker/ui/_interaction.py @@ -1165,7 +1165,10 @@ class ChartView(ViewBox): # determined by the above indexing arithmetic. y_ref = y_maj_intersect if not y_ref: - breakpoint() + log.warning( + f'BAD y_maj_intersect?!: {y_maj_intersect}' + ) + # breakpoint() r_up = (major_mx - y_ref) / y_ref r_down = (major_mn - y_ref) / y_ref @@ -1256,7 +1259,11 @@ class ChartView(ViewBox): math.isinf(ymx) or math.isinf(ymn) ): - breakpoint() + # breakpoint() + log.warning( + f'BAD ymx/ymn: {(ymn, ymx)}' + ) + continue view._set_yrange( yrange=(ymn, ymx),