Skip to content

Commit 6a9a6b6

Browse files
committed
fix for cases of slice being given
1 parent ac881dd commit 6a9a6b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/biocamrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _get_analogsignal_chunk(self, block_index, seg_index, i_start, i_stop, strea
137137
# newer style data returns an initial flat array (n_samples * n_channels)
138138
# we iterate through channels rather than slicing
139139
else:
140-
if channel_indexes is None:
140+
if (channel_indexes is None) or (channel_indexes == slice(None)):
141141
channel_indexes = [ch for ch in range(self._num_channels)]
142142

143143
sig_chunk = np.zeros((i_stop-i_start, len(channel_indexes)))

0 commit comments

Comments
 (0)