Skip to content

Commit

Permalink
disable matched zoom in other viewers in imviz to avoid recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Mar 20, 2024
1 parent 2371925 commit 5b7f068
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ Imviz

- Add "Random" colormap for visualizing image segmentation maps. [#2671]

- Enabling any matched zoom tool in a viewer disables other matched zoom tools in other viewers
to avoid recursion. [#2764]

Mosviz
^^^^^^

Expand Down
2 changes: 1 addition & 1 deletion jdaviz/configs/imviz/plugins/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class _ImvizMatchedZoomMixin(_MatchedZoomMixin):
match_keys = ('x_min', 'x_max', 'y_min', 'y_max')
disable_matched_zoom_in_other_viewer = False
disable_matched_zoom_in_other_viewer = True

def _is_matched_viewer(self, viewer):
return isinstance(viewer, BqplotImageView)
Expand Down
2 changes: 1 addition & 1 deletion jdaviz/core/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def save_prev_zoom(self):

class _MatchedZoomMixin:
match_axes = ('x', 'y')
disable_matched_zoom_in_other_viewer = False
disable_matched_zoom_in_other_viewer = True

def _is_matched_viewer(self, viewer):
return True
Expand Down

0 comments on commit 5b7f068

Please sign in to comment.