Skip to content

Commit

Permalink
Actually yes, we need to handle empty in-view range..
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Mar 10, 2023
1 parent 6b8ca8f commit ca71e32
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions piker/ui/view_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,18 +668,17 @@ def overlay_viewlists(
f'yref@xref_pin: {yref}\n'
)

# if we need to handle not-in-view cases?
# mx_scalars = mx_viz.scalars_from_index(xref)
# if mx_scalars is None:
# continue

# XXX: we need to handle not-in-view cases?
# still not sure why or when tf this happens..
mx_scalars = mx_viz.scalars_from_index(xref)
if mx_scalars is None:
continue
(
i_start,
y_ref_major,
r_up_from_major_at_xref,
r_down_from_major_at_xref,
) = mx_viz.scalars_from_index(xref)
# ) = mx_scalars
) = mx_scalars

if debug_print:
print(
Expand Down

0 comments on commit ca71e32

Please sign in to comment.