Skip to content

Commit 9ee9ddf

Browse files
committed
fix biocam chunk shape when channel_indexes is None
1 parent de1ce4c commit 9ee9ddf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

neo/rawio/biocamrawio.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,11 @@ def _get_analogsignal_chunk(self, block_index, seg_index, i_start, i_stop,
112112
i_start = 0
113113
if i_stop is None:
114114
i_stop = self._num_frames
115-
116115
data = self._read_function(self._filehandle, i_start, i_stop, self._num_channels)
117-
return data[:, channel_indexes]
116+
if channel_indexes is None:
117+
return data
118+
else:
119+
return data[:, channel_indexes]
118120

119121

120122
def open_biocam_file_header(filename):

0 commit comments

Comments
 (0)