Import error in Micromed Brain Quick software
I tried reading an .edf and writing it as TRC to do the import in Brain Quick. But the error below pops up.
The way I'm doing the conversion is specified in the attached file .py edfToTRC.py
Basically
- ReadEDF with mne
- Resample channels to 128 hz because BrainQuick only supports srates which are powers of two. Note: I tried both with and without resampling and I got the same import error so this step probably has nothing to do.
- Write TRC
At the same time, the most of the channels names were cut to be of 5 chars of length. I tried renaming the channels with the commented lines of the .py attached, but the same import error came out. However I think that the tolerance for channel name length is 15 instead of 5 chars, according to the warning in https://martinos.org/mne/dev/generated/mne.rename_channels.html?highlight=rename_channels#mne.rename_channels
Steps to reproduce:
- run edfToTRC.py 449_correct.edf, you can find the EDF in Brain Quick server. C:/EDFs/
- From Brainquick > tools > import> Exam