.set file import error

  • MNE-Python version: 0.23.0- python 3.6
  • operating system: Ubuntu, Linux

Hello,

I’ve been trying to import a .set eeg file via
raw = mne.io.read_raw_eeglab('Data/file.set', preload=True), but I get this error ValueError: Could not find EEG array in the .set file.
The .fdt file is exactly named the same and is located in the same folder as the .set file.

Also, I wanted to explore the option of importing a .mff file, but on ubuntu the .mff file becomes a folder instead of a file, so can’t be read. Is there a way around it ?

Thank you for your help!

Which version of MNE are you using?

If you load the .set file with matlab it returns an EEG structure?

Regarding .mff files it should not be a problem on Linux

Alex

Regarding the error you get when reading set files: make sure that reading the file in matlab (or just sicpy.io.loadmat for example) gives you a structure containing EEG field. If you save .set + .fdt data then the contents of the EEG field would be just the name of the fdt file.

Also, I wanted to explore the option of importing a .mff file, but on ubuntu the .mff file becomes a folder instead of a file, so can’t be read. Is there a way around it ?

Just as @agramfort mentions - it should work without any problems. The .mff files are folders on Windows too but I had no trouble reading them in mne.