Skip to content

Some fixes from AIND feedback#267

Open
alejoe91 wants to merge 6 commits into
SpikeInterface:mainfrom
alejoe91:aind-fixes
Open

Some fixes from AIND feedback#267
alejoe91 wants to merge 6 commits into
SpikeInterface:mainfrom
alejoe91:aind-fixes

Conversation

@alejoe91
Copy link
Copy Markdown
Member

@alejoe91 alejoe91 commented May 14, 2026

  • fix sorting of str/object columns using natsort
  • first implementation of divergent colormap based on y-x lexsorting
  • fix mergeview refresh after accepting merge
  • remove cache and update color in correlogram with color by visibility

Comment thread spikeinterface_gui/controller.py Outdated
Comment thread spikeinterface_gui/utils_panel.py
Comment thread spikeinterface_gui/mergeview.py
Comment on lines +152 to +161
# for the color_by_visibility
if self.controller.main_settings["color_mode"] == 'color_by_visibility':
# Update color in cached figure
if r == c:
unit_id = visible_unit_ids[r]
color = colors[unit_id]
for renderer in fig.renderers:
if hasattr(renderer, 'glyph') and hasattr(renderer.glyph, 'fill_color'):
renderer.glyph.fill_color = color
renderer.glyph.line_color = color
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we need something similar for qt.
At the moment, when you change the color setting, the correlogram of the unit you're on doesn't update.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

right, let me add that to this PR

Co-authored-by: Chris Halcrow <57948917+chrishalcrow@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants