Actually yes, we need to handle empty in-view range..
parent
5c697de58e
commit
1aab9f1f81
|
@ -668,18 +668,17 @@ def overlay_viewlists(
|
||||||
f'yref@xref_pin: {yref}\n'
|
f'yref@xref_pin: {yref}\n'
|
||||||
)
|
)
|
||||||
|
|
||||||
# if we need to handle not-in-view cases?
|
# XXX: we need to handle not-in-view cases?
|
||||||
# mx_scalars = mx_viz.scalars_from_index(xref)
|
# still not sure why or when tf this happens..
|
||||||
# if mx_scalars is None:
|
mx_scalars = mx_viz.scalars_from_index(xref)
|
||||||
# continue
|
if mx_scalars is None:
|
||||||
|
continue
|
||||||
(
|
(
|
||||||
i_start,
|
i_start,
|
||||||
y_ref_major,
|
y_ref_major,
|
||||||
r_up_from_major_at_xref,
|
r_up_from_major_at_xref,
|
||||||
r_down_from_major_at_xref,
|
r_down_from_major_at_xref,
|
||||||
) = mx_viz.scalars_from_index(xref)
|
) = mx_scalars
|
||||||
# ) = mx_scalars
|
|
||||||
|
|
||||||
if debug_print:
|
if debug_print:
|
||||||
print(
|
print(
|
||||||
|
|
Loading…
Reference in New Issue