From 85f90093e68c351a52cb3436a31a01aad23702e3 Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Thu, 25 Aug 2022 17:54:07 -0400 Subject: [PATCH] Use simpler app access Co-authored-by: Kyle Conroy --- .../configs/imviz/plugins/aper_phot_simple/aper_phot_simple.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jdaviz/configs/imviz/plugins/aper_phot_simple/aper_phot_simple.py b/jdaviz/configs/imviz/plugins/aper_phot_simple/aper_phot_simple.py index ee2c5b4020..3f8e22a482 100644 --- a/jdaviz/configs/imviz/plugins/aper_phot_simple/aper_phot_simple.py +++ b/jdaviz/configs/imviz/plugins/aper_phot_simple/aper_phot_simple.py @@ -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)