Skip to content

Commit

Permalink
Use simpler app access
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Conroy <[email protected]>
  • Loading branch information
pllim and kecnry authored Aug 25, 2022
1 parent 31c4d6c commit 85f9009
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def _get_region_from_subset(self, subset):
# Assume it is always pixel region, not sky region. Even with multiple
# viewers, they all seem to share the same reference image even when it is
# not loaded in all the viewers, so use default viewer.
viewer = self.session.jdaviz_app._jdaviz_helper.default_viewer
viewer = self.app._jdaviz_helper.default_viewer

x, y, _ = viewer._get_real_xy(
self.app.data_collection[self.dataset_selected],
reg.center.x, reg.center.y)
Expand Down

0 comments on commit 85f9009

Please sign in to comment.