We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad467e3 commit 83b8d26Copy full SHA for 83b8d26
1 file changed
src/spikeinterface/core/sortinganalyzer.py
@@ -1199,7 +1199,10 @@ def merge_units(
1199
1200
if len(merge_unit_groups) == 0:
1201
# TODO I think we should raise an error or at least make a copy and not return itself
1202
- return self
+ if return_new_unit_ids:
1203
+ return self, []
1204
+ else:
1205
+ return self
1206
1207
for units in merge_unit_groups:
1208
# TODO more checks like one units is only in one group
0 commit comments