Skip to content

Commit 749a349

Browse files
authored
Merge pull request #3636 from cwindolf/avg_chans_bug2
Check for channel_indices is None
2 parents d0919ad + 7bb12f0 commit 749a349

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/spikeinterface/preprocessing/average_across_direction.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ def get_traces(self, start_frame, end_frame, channel_indices):
132132
# now, divide by the number of channels at that position
133133
traces /= self.n_chans_each_pos
134134

135-
return traces[:, channel_indices]
135+
if channel_indices is not None:
136+
traces = traces[:, channel_indices]
137+
138+
return traces
136139

137140

138141
# function for API

0 commit comments

Comments
 (0)