Skip to content

Commit

Permalink
update for changes to scatter in glue-jupyter 0.18 (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry authored Sep 6, 2023
1 parent 4d84dd8 commit c9583d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lcviz/plugins/coords_info/coords_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ def _cursor_fallback():
if self.dataset.selected != 'auto' and self.dataset.selected != lyr.layer.label:
continue

scatter = lyr.scatter
# glue-jupyter 1.18 changed from lyr.scatter to lyr.scatter_mark
# TODO: once glue-jupyter is pinned to 1.18 or later, update this to:
# scatter = lyr.scatter_mark
scatter = getattr(lyr, 'scatter_mark', getattr(lyr, 'scatter', None))
lyr_x, lyr_y = scatter.x, scatter.y
if not len(lyr_x):
continue
Expand Down

0 comments on commit c9583d0

Please sign in to comment.