Skip to content

Commit 6164a87

Browse files
authored
Merge pull request #1175 from SachsLab/cboulay/bci2k_chan_names
Fix bci2000 error with np.isnan not working on list of channel names
2 parents b4b6bbf + 588accf commit 6164a87

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
@@ -44,7 +44,7 @@ def _parse_header(self):
4444

4545
sig_channels = []
4646
for chan_ix in range(file_info['SourceCh']):
47-
if 'ChannelNames' in param_defs and not np.isnan(param_defs['ChannelNames']['value']):
47+
if 'ChannelNames' in param_defs and isinstance(param_defs['ChannelNames']['value'], (list, tuple)):
4848
ch_name = param_defs['ChannelNames']['value'][chan_ix]
4949
else:
5050
ch_name = 'ch' + str(chan_ix)

0 commit comments

Comments
 (0)