mne-python icon indicating copy to clipboard operation
mne-python copied to clipboard

Implement read method for Neurovirtual's EEG files (`.eeg`)

Open FelipeParreira opened this issue 2 years ago • 2 comments

Describe the new feature or enhancement

I need to read .eeg files generated by Neurovirtual's devices. Would you be able to implement a method that reads this type of file returning raw data (something similar to the mne.io.read_raw_* methods)? If you are able to implement it (or at least guide me in implementing it myself), I can provide some sample files.

FelipeParreira avatar Aug 26 '22 13:08 FelipeParreira

or at least guide me in implementing it myself

That would be great!

Roughly the steps would be:

  1. Add mne/io/neurovirtual/_neurovirtual.py

  2. In this file, create a RawNeurovirtual that subclasses BaseRaw

  3. Give that class a __init__ that sets channel types and metadata, like here:

    https://github.com/mne-tools/mne-python/blob/93485e025d576470c21cc936becb3992c01a9c5e/mne/io/hitachi/hitachi.py#L231-L241

  4. Give that class a _read_segment_file method, like here:

    https://github.com/mne-tools/mne-python/blob/93485e025d576470c21cc936becb3992c01a9c5e/mne/io/hitachi/hitachi.py#L243-L255

  5. Add a read_raw_neurovirtual(fname) that instantiates and returns the class

  6. in mne/io/__init__.py import read_raw_neurovirtual

  7. Add very small test files (e.g., 1 sec of data) to mne_testing_data

  8. Add mne/io/neurovirtual/tests/test_neurovirtual.py that test that data reading works

If you look at the other mne/io/* folders, you'll see that they all do this in various ways. A couple of simple implementations to look at would be hitachi, eximia, and nicolet.

larsoner avatar Aug 27 '22 09:08 larsoner

Any updates on this? Being able to read neurovirtual files would me very helpful.

JohnAtl avatar Apr 02 '24 12:04 JohnAtl