Skip to content

Commit 9a74ccb

Browse files
author
PennyQ
committed
rebase with point mode but dendrogram selection not get shown
1 parent 5fd5e6d commit 9a74ccb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

glue_vispy_viewers/common/toolbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def __init__(self, vispy_widget=None, parent=None):
146146
self.point_action = a
147147

148148
# TODO: show if there is dendrogram file or not shown
149-
a = QtGui.QAction(QtGui.QIcon(DENDROGRAM_ICON), 'Dendrogram Selection', parent)
149+
a = QtWidgets.QAction(QtGui.QIcon(DENDROGRAM_ICON), 'Dendrogram Selection', parent)
150150
a.triggered.connect(nonpartial(self.toggle_dendrogram))
151151
a.setCheckable(True)
152152
parent.addAction(a)

glue_vispy_viewers/volume/volume_toolbar.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def on_mouse_press(self, event):
5151

5252
# Get all data sets visible in current viewer
5353
self.visible_data, self.visual = self.get_visible_data()
54-
self.current_visible_array = np.nan_to_num(self.visible_data[0]['PRIMARY'])
54+
# self.current_visible_array = np.nan_to_num(self.visible_data[0]['PRIMARY'])
55+
# dendrogram data object does not has PRIMARY att
56+
self.current_visible_array = self.visible_data[0]['intensity']
5557
self.visual_tr = self._vispy_widget.limit_transforms[self.visual]
5658

5759
if self.mode is 'point':

0 commit comments

Comments
 (0)