Skip to content

Commit e286545

Browse files
committed
Fix index
1 parent b916cfc commit e286545

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

neo/rawio/openephysbinaryrawio.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def _parse_header(self):
5858

5959
for block_index in range(nb_block):
6060
sig_stream_names[block_index] = {}
61-
6261
for stream_name in sorted(list(all_streams[block_index][0]['continuous'].keys())):
6362
sig_stream_names[block_index][sig_stream_index] = stream_name
6463
sig_stream_index += 1
@@ -191,7 +190,7 @@ def _parse_header(self):
191190

192191
# loop over events
193192
for stream_ind, stream_name in event_stream_names[block_index].items():
194-
d = self._evt_streams[block_index][0][stream_index]
193+
d = self._evt_streams[block_index][0][stream_ind]
195194
if d['timestamps'].size == 0:
196195
continue
197196
t_start = d['timestamps'][0] / d['sample_rate']

0 commit comments

Comments
 (0)