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.5.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.. _release0.104.5:

SpikeInterface 0.104.5 release notes
------------------------------------

June 12th 2026

Minor release with bug fixes

core:

* Propagate ``self.tmp_data_to_save`` when selecting units in ``BaseMeticExtension`` (#4616)

Contributors:

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

releases/0.104.5.rst
releases/0.104.4.rst
releases/0.104.3.rst
releases/0.104.2.rst
releases/0.104.1.rst
Expand Down Expand Up @@ -55,6 +57,10 @@ Release notes
releases/0.9.9.rst
releases/0.9.1.rst

Version 0.104.5
===============

* Minor release with bug fixes

Version 0.104.4
===============
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.4"
version = "0.104.5"
authors = [
{ name="Alessio Buccino", email="alessiop.buccino@gmail.com" },
{ name="Samuel Garcia", email="sam.garcia.die@gmail.com" },
Expand Down
16 changes: 15 additions & 1 deletion src/spikeinterface/core/analyzer_extension_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1360,8 +1360,22 @@ def _select_extension_data(self, unit_ids: list[int | str]):
dict
Dictionary containing the selected metrics DataFrame.
"""
import pandas as pd

new_data = dict()
new_metrics = self.data["metrics"].loc[np.array(unit_ids)]
return dict(metrics=new_metrics)
new_data["metrics"] = new_metrics
if self.tmp_data_to_save is not None:
for k in self.tmp_data_to_save:
old_data = self.data[k]
if isinstance(old_data, pd.DataFrame):
new_df = old_data.loc[np.array(unit_ids)]
new_data[k] = new_df
elif isinstance(old_data, np.ndarray):
old_arr = self.data[k]
new_arr = old_arr[self.sorting_analyzer.sorting.ids_to_indices(unit_ids), ...]
new_data[k] = new_arr
return new_data

def _merge_extension_data(
self,
Expand Down