Skip to content

Commit 97073b6

Browse files
Apply suggestions from code review
Co-authored-by: Chris Halcrow <[email protected]>
1 parent f8b3b26 commit 97073b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spikeinterface/core/basesorting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,8 @@ def split_by(self, property="group", outputs="dict"):
658658
sortings = {}
659659
for value in np.unique(values).tolist():
660660
(inds,) = np.nonzero(values == value)
661-
new_channel_ids = self.unit_ids[inds]
662-
subsort = self.select_units(new_channel_ids)
661+
new_unit_ids = self.unit_ids[inds]
662+
subsort = self.select_units(new_unit_ids)
663663
subsort.set_annotation("split_by_property", value=property)
664664
if outputs == "list":
665665
sortings.append(subsort)

0 commit comments

Comments
 (0)