[Mne_analysis] Error during read_raw_nihon

Tharik José Sorrino dos Reis tharik.reis at usp.br
Fri Oct 16 15:15:36 EDT 2020
Search archives:

        External Email - Use Caution        

Hello,

my name is Tharik José Sorrino dos Reis, and I am a master's student from
the University of Sao Paulo, in Brazil. My thesis is about using EEG data
to predict epilepsy seizures. I would like to use mne library to read the
data that I will use as input, however, I am having some trouble during
this procedure. I used the layout displayed in mne's GitHub to describe the
problem. I attached the files I am trying to read in this email. Does
anyone know how I could proceed to address this error?

best regards,

Tharik


#### Describe the bug
I am facing an error during the reading phase of a Nihon EEG file. The
problem is during the reading of the .21E file. The EEG is not corrupted
since it can be opened in the Nihon program.


#### Steps to reproduce
import mne

raw =
mne.io.read_raw_nihon('Nihon/Nihon_Salvo_em_Tres_Montagens/DA7521RO.EEG')

[MWE]: https://en.wikipedia.org/wiki/Minimal_Working_Example
[built-in datasets]: https://mne.tools/dev/overview/datasets_index.html
[sample]: https://mne.tools/dev/overview/datasets_index.html#sample


#### Expected results
Expected to get the raw data of the EEG file.


#### Actual results
Loading DA7521RO.EEG
Found 21E file, reading channel names.
Traceback (most recent call last):
  File "C:/Users/Sorrino/Documents/Faculdade/EESC/01 - Mestrado/Reading
EEG/Reading  Nihon.py", line 6, in <module>
    raw =
mne.io.read_raw_nihon('Nihon/Nihon_Salvo_em_Tres_Montagens/DA7521RO.EEG')
  File
"C:\Users\Sorrino\anaconda3\envs\mne_dev\lib\site-packages\mne\io\nihon\nihon.py",
line 46, in read_raw_nihon
    return RawNihon(fname, preload, verbose)
  File "<decorator-gen-218>", line 24, in __init__
  File
"C:\Users\Sorrino\anaconda3\envs\mne_dev\lib\site-packages\mne\io\nihon\nihon.py",
line 311, in __init__
    header = _read_nihon_header(fname)
  File
"C:\Users\Sorrino\anaconda3\envs\mne_dev\lib\site-packages\mne\io\nihon\nihon.py",
line 126, in _read_nihon_header
    _chan_labels = _read_21e_file(fname)
  File
"C:\Users\Sorrino\anaconda3\envs\mne_dev\lib\site-packages\mne\io\nihon\nihon.py",
line 119, in _read_21e_file
    _chan_labels[idx] = name.strip()
IndexError: list assignment index out of range

Process finished with exit code 1



#### Additional information
Platform:      Windows-10-10.0.18362-SP0
Python:        3.8.5 (default, Sep  3 2020, 21:29:08) [MSC v.1916 64 bit
(AMD64)]
Executable:    C:\Users\Sorrino\anaconda3\envs\mne\python.exe
CPU:           Intel64 Family 6 Model 94 Stepping 3, GenuineIntel: 8 cores
Memory:        7.9 GB

mne:           0.21.0
numpy:         1.19.1 {blas=mkl_rt, lapack=mkl_rt}
scipy:         1.5.0
matplotlib:    3.3.1 {backend=Qt5Agg}

sklearn:       0.23.2
numba:         0.51.2
nibabel:       3.1.1
cupy:          Not found
pandas:        1.1.3
dipy:          1.2.0
mayavi:        4.7.2
pyvista:       0.26.1 {pyvistaqt=0.2.0, OpenGL 4.5.0 NVIDIA 451.48 via
GeForce GTX 960M/PCIe/SSE2}
vtk:           9.0.1
PyQt5:         5.15.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201016/61ecf287/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DA7521RO.21E
Type: application/octet-stream
Size: 105409 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201016/61ecf287/attachment-0004.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DA7521RO.LOG
Type: application/octet-stream
Size: 495309 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201016/61ecf287/attachment-0005.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DA7521RO.EEG
Type: application/octet-stream
Size: 328355 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201016/61ecf287/attachment-0006.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DA7521RO.PNT
Type: application/octet-stream
Size: 7720 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20201016/61ecf287/attachment-0007.obj 


More information about the Mne_analysis mailing list