Skip to content

Commit 9111768

Browse files
committed
add rec time; fix slicing
1 parent 0c4e3ca commit 9111768

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

neo/rawio/neuronexusrawio.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ def _parse_header(self):
218218
# Add the minimum annotations
219219
self._generate_minimal_annotations()
220220

221+
self.header['rec_datetime'] = self.metadata['status']['start_time']
222+
221223
def _get_signal_size(self, block_index, seg_index, stream_index):
222224

223225
# All streams have the same size so just return the raw_data size
@@ -231,8 +233,11 @@ def _get_analogsignal_chunk(self, block_index, seg_index, i_start, i_stop, strea
231233
i_stop = self._get_signal_size(block_index, seg_index, stream_index)
232234

233235
raw_data = self._raw_data[i_start:i_stop, :]
236+
234237
if channel_indexes is None:
235-
raw_data = raw_data[:, channel_indexes]
238+
channel_indexes = slice(None)
239+
240+
raw_data = raw_data[:, channel_indexes]
236241
return raw_data
237242

238243
def _segment_t_stop(self, block_index, seg_index):

0 commit comments

Comments
 (0)