Skip to content

Commit 0769920

Browse files
authored
Merge branch 'main' into fix_chris_bug
2 parents cce3038 + 8f6570e commit 0769920

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

doc/api.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,6 @@ spikeinterface.comparison
277277

278278
.. autoclass:: CollisionGTComparison
279279
.. autoclass:: CorrelogramGTComparison
280-
.. autoclass:: CollisionGTStudy
281-
.. autoclass:: CorrelogramGTStudy
282280

283281

284282

src/spikeinterface/core/baserecordingsnippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def split_by(self, property="group", outputs="dict"):
560560
recordings = []
561561
elif outputs == "dict":
562562
recordings = {}
563-
for value in np.unique(values):
563+
for value in np.unique(values).tolist():
564564
(inds,) = np.nonzero(values == value)
565565
new_channel_ids = self.get_channel_ids()[inds]
566566
subrec = self.select_channels(new_channel_ids)

src/spikeinterface/core/sortinganalyzer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,10 @@ def merge_units(
11991199

12001200
if len(merge_unit_groups) == 0:
12011201
# TODO I think we should raise an error or at least make a copy and not return itself
1202-
return self
1202+
if return_new_unit_ids:
1203+
return self, []
1204+
else:
1205+
return self
12031206

12041207
for units in merge_unit_groups:
12051208
# TODO more checks like one units is only in one group

0 commit comments

Comments
 (0)