Skip to content

Conversation

@chrishalcrow
Copy link
Member

Current qt probe refresh doesn't work properly

@chrishalcrow chrishalcrow added the bug Something isn't working label Oct 30, 2025
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...)

@samuelgarcia samuelgarcia merged commit 120907a into SpikeInterface:main Nov 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants