Skip to content

Commit

Permalink
footprints: if changing link type fails, redirect to orientation plugin
Browse files Browse the repository at this point in the history
* not ideal if the plugin is either inline or a popout... in the future we could detect whether there are subsets or markers and edit the text to say they will be removed (either in one button or additional buttons as-per the orientation plugin)
  • Loading branch information
kecnry committed Nov 8, 2024
1 parent 4e3617c commit 9a85a6b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jdaviz/configs/imviz/plugins/footprints/footprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,13 @@ def vue_link_by_wcs(self, *args):
# call other plugin so that other options (wcs_fast_approximation, wcs_use_fallback)
# are retained. Remove this method if support for plotting footprints
# when pixel-linked is reintroduced.
self.app._jdaviz_helper.plugins['Orientation'].align_by = 'WCS'
op = self.app._jdaviz_helper.plugins['Orientation']
try:
self.app._jdaviz_helper.plugins['Orientation'].align_by = 'WCS'
except ValueError:
# require the user to go to through the orientation plugin to
# delete subsets and change link type
op.open_in_tray()

def _ensure_first_overlay(self):
if not len(self._overlays):
Expand Down

0 comments on commit 9a85a6b

Please sign in to comment.