Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions spikeinterface_gui/probeview.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def _qt_refresh(self):
for label in self.channel_labels:
label.hide()

self._qt_on_unit_visibility_changed()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe there should be a function called _qt_highlight_visible_units that does all the work. Then this could be self._qt_highlight_visible_units() and:

def _qt_on_unit_visibility_changed(self):
   self._qt_highlight_visible_units()

I know it's subtle, but the on visible unit changed is only called when a on_unit_visibility_changed signal is triggered.
What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, makes sense. So on_unit_visibility_changed is a special function reserved exclusively for when the unit ids change. Nice. Does this work?
(I snuck in another bug fix...)


def _qt_update_channel_visibility_from_roi(self, emit_signals=False):
r, x, y = circle_from_roi(self.roi_channel)
Expand Down