Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: spacetelescope/jdaviz
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e5fa1232161623ff1b167859d854a57d87aff6d5
Choose a base ref
..
head repository: spacetelescope/jdaviz
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 39ad22dffaabddbe94251c2f10972aafb1653135
Choose a head ref
Showing with 4 additions and 0 deletions.
  1. +4 −0 jdaviz/configs/imviz/plugins/viewers.py
4 changes: 4 additions & 0 deletions jdaviz/configs/imviz/plugins/viewers.py
Original file line number Diff line number Diff line change
@@ -62,6 +62,10 @@ def __init__(self, *args, **kwargs):
self.state.image_external_padding = 0.5

def on_mouse_or_key_event(self, data):
active_image_layer = self.active_image_layer
if active_image_layer is None:
return

if self.line_profile_xy is None:
try:
self.line_profile_xy = self.session.jdaviz_app.get_tray_item_from_name(