Skip to content

Commit

Permalink
Merge pull request #3575 from yger/patch_plot_sparse_templates
Browse files Browse the repository at this point in the history
Patch to allow ipywidget plot_unit_templates to work with sparse templates (instead of analyzer)
  • Loading branch information
alejoe91 authored Dec 11, 2024
2 parents 4ed068a + 4c7b6a5 commit 6fde997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/widgets/unit_waveforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def _update_plot(self, change):
channel_locations = self.sorting_analyzer.get_channel_locations()
else:
unit_indices = [list(self.templates.unit_ids).index(unit_id) for unit_id in unit_ids]
templates = self.templates.templates_array[unit_indices]
templates = self.templates.get_dense_templates()[unit_indices]
templates_shadings = None
channel_locations = self.templates.get_channel_locations()

Expand Down

0 comments on commit 6fde997

Please sign in to comment.