Skip to content

Commit 45482d3

Browse files
authored
Merge pull request #736 from JuliaSprenger/fix/bci2000
Enhance bci2000 header parsing
2 parents b4424b4 + c05cb2b commit 45482d3

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)