Skip to content

Commit c05cb2b

Browse files
committed
[IO] Enhance bci2000 header parsing
1 parent 35d02a4 commit c05cb2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/bci2000rawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _parse_header(self):
4141
sig_channels = []
4242
for chan_ix in range(file_info['SourceCh']):
4343
ch_name = param_defs['ChannelNames']['value'][chan_ix] \
44-
if 'ChannelNames' in param_defs else 'ch' + str(chan_ix)
44+
if 'ChannelNames' in param_defs and param_defs['ChannelNames']['value'] is not np.nan else 'ch' + str(chan_ix)
4545
chan_id = chan_ix + 1
4646
sr = param_defs['SamplingRate']['value'] # Hz
4747
dtype = file_info['DataFormat']

0 commit comments

Comments
 (0)