Just warn log on bad intersect indexing errors (for now)

log_linearized_curve_overlays
Tyler Goodlet 2023-01-21 22:28:18 -05:00
parent fc6ccc306c
commit a0fb84f55b
1 changed files with 9 additions and 2 deletions

View File

@ -1165,7 +1165,10 @@ class ChartView(ViewBox):
# determined by the above indexing arithmetic. # determined by the above indexing arithmetic.
y_ref = y_maj_intersect y_ref = y_maj_intersect
if not y_ref: 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_up = (major_mx - y_ref) / y_ref
r_down = (major_mn - y_ref) / y_ref r_down = (major_mn - y_ref) / y_ref
@ -1256,7 +1259,11 @@ class ChartView(ViewBox):
math.isinf(ymx) math.isinf(ymx)
or math.isinf(ymn) or math.isinf(ymn)
): ):
breakpoint() # breakpoint()
log.warning(
f'BAD ymx/ymn: {(ymn, ymx)}'
)
continue
view._set_yrange( view._set_yrange(
yrange=(ymn, ymx), yrange=(ymn, ymx),