diff --git a/src/spikeinterface/preprocessing/common_reference.py b/src/spikeinterface/preprocessing/common_reference.py index a5c9638896..c40aa11767 100644 --- a/src/spikeinterface/preprocessing/common_reference.py +++ b/src/spikeinterface/preprocessing/common_reference.py @@ -100,7 +100,7 @@ def __init__( if groups is not None: group_indices = [self.ids_to_indices(g) for g in groups] else: - groups_inds = None + group_indices = None if ref_channel_ids is not None: ref_channel_inds = self.ids_to_indices(ref_channel_ids) else: @@ -108,7 +108,7 @@ def __init__( for parent_segment in recording._recording_segments: rec_segment = CommonReferenceRecordingSegment( - parent_segment, reference, operator, groups_inds, ref_channel_inds, local_radius, neighbors, dtype_ + parent_segment, reference, operator, group_indices, ref_channel_inds, local_radius, neighbors, dtype_ ) self.add_recording_segment(rec_segment) @@ -129,7 +129,7 @@ def __init__( parent_recording_segment, reference, operator, - groups_inds, + group_indices, ref_channel_inds, local_radius, neighbors, @@ -139,7 +139,7 @@ def __init__( self.reference = reference self.operator = operator - self.groups_inds = groups_inds + self.group_indices = group_indices self.ref_channel_inds = ref_channel_inds self.local_radius = local_radius self.neighbors = neighbors @@ -185,8 +185,8 @@ def get_traces(self, start_frame, end_frame, channel_indices): def _groups(self, channel_indices): selected_groups = [] selected_channels = [] - if self.groups_inds: - for chan_inds in self.groups_inds: + if self.group_indices: + for chan_inds in self.group_indices: sel_inds = [ind for ind in channel_indices if ind in chan_inds] # if no channels are in a group, do not return the group if len(sel_inds) > 0: