Skip to content

Commit

Permalink
Add fix to give a proper error message when an unsupported EEG-1200A …
Browse files Browse the repository at this point in the history
…V01.00 is read (mne-tools#8396)
  • Loading branch information
fraimondo authored Oct 21, 2020
1 parent 6f16c37 commit 6934034
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mne/io/nihon/nihon.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def read_raw_nihon(fname, preload=False, verbose=None):
'EEG-2100 V02.00',
'DAE-2100D V01.30',
'DAE-2100D V02.00',
# 'EEG-1200A V01.00', # Not working for the moment.
]


Expand Down Expand Up @@ -116,6 +117,9 @@ def _read_21e_file(fname):
elif keep_parsing is True:
idx, name = line.split('=')
idx = int(idx)
if idx >= len(_chan_labels):
n = idx - len(_chan_labels) + 1
_chan_labels.extend(['UNK'] * n)
_chan_labels[idx] = name.strip()
return _chan_labels

Expand Down

0 comments on commit 6934034

Please sign in to comment.