Skip to content

Commit 588accf

Browse files
committed
Fix bci2000 error with np.isnan not working on list of channel names
1 parent 0e89241 commit 588accf

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)