Skip to content

Commit 8f6570e

Browse files
authored
Merge pull request #3749 from yger/patch_merging
Patch for merging
2 parents ad467e3 + 83b8d26 commit 8f6570e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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)