Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
16 changes: 16 additions & 0 deletions doc/releases/0.104.9.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.. _release0.104.9:

SpikeInterface 0.104.9 release notes
------------------------------------

Sept 10th 2026

Minor release with bug fixes for sortingview backend
extractors:

* Sortingview/Figpack: transpose templates (for sortingview) and cast to float32 to avoid serialization issues (#4774)
#4774

Contributors:

* @alejoe91
3 changes: 2 additions & 1 deletion doc/whatisnew.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Release notes
.. toctree::
:maxdepth: 1

releases/0.104.9.rst
releases/0.104.8.rst
releases/0.104.7.rst
releases/0.104.6.rst
Expand Down Expand Up @@ -60,7 +61,7 @@ Release notes
releases/0.9.9.rst
releases/0.9.1.rst

Versions 0.104.1/8
Versions 0.104.1/9
==================

* Minor releases with bug fixes
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "spikeinterface"
version = "0.104.8"
version = "0.104.9"
authors = [
{ name="Alessio Buccino", email="alessiop.buccino@gmail.com" },
{ name="Samuel Garcia", email="sam.garcia.die@gmail.com" },
Expand Down
16 changes: 12 additions & 4 deletions src/spikeinterface/widgets/unit_templates.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from spikeinterface.core import SortingAnalyzer

from .unit_waveforms import UnitWaveformsWidget
from .base import to_attr

Expand Down Expand Up @@ -40,12 +41,17 @@ def plot_figpack(self, data_plot, **backend_kwargs):
templates_dict = {}
for u_i, unit in enumerate(unit_ids):
templates_dict[unit] = {}
template_data = dp.templates[u_i]
templates_dict[unit]["mean"] = template_data[:, unit_id_to_channel_indices[unit]]
template_data = dp.templates[u_i][:, unit_id_to_channel_indices[unit]].astype("float32")
if use_sortingview:
template_data = template_data.T
templates_dict[unit]["mean"] = template_data
if dp.do_shading:
templates_dict[unit]["shading"] = []
for shading_data in dp.templates_shading:
templates_dict[unit]["shading"].append(shading_data[u_i][:, unit_id_to_channel_indices[unit]])
shading_data_unit = shading_data[u_i][:, unit_id_to_channel_indices[unit]].astype("float32")
if use_sortingview:
shading_data_unit = shading_data_unit.T
templates_dict[unit]["shading"].append(shading_data_unit)
else:
templates_dict[unit]["shading"] = None

Expand All @@ -59,7 +65,9 @@ def plot_figpack(self, data_plot, **backend_kwargs):
for u, t in templates_dict.items()
]

channel_locations = {str(ch): dp.channel_locations[i_ch].astype(float) for i_ch, ch in enumerate(channel_ids)}
channel_locations = {
str(ch): dp.channel_locations[i_ch].astype("float32") for i_ch, ch in enumerate(channel_ids)
}
v_average_waveforms = vv_views.AverageWaveforms(average_waveforms=aw_items, channel_locations=channel_locations)

if not dp.hide_unit_selector:
Expand Down