Implement read method for Neurovirtual's EEG files (`.eeg`)
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.
or at least guide me in implementing it myself
That would be great!
Roughly the steps would be:
-
Add
mne/io/neurovirtual/_neurovirtual.py -
In this file, create a
RawNeurovirtualthat subclassesBaseRaw -
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
-
Give that class a
_read_segment_filemethod, like here:https://github.com/mne-tools/mne-python/blob/93485e025d576470c21cc936becb3992c01a9c5e/mne/io/hitachi/hitachi.py#L243-L255
-
Add a
read_raw_neurovirtual(fname)that instantiates and returns the class -
in
mne/io/__init__.pyimportread_raw_neurovirtual -
Add very small test files (e.g., 1 sec of data) to mne_testing_data
-
Add
mne/io/neurovirtual/tests/test_neurovirtual.pythat 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.
Any updates on this? Being able to read neurovirtual files would me very helpful.