Using Script to Import EEGLAB files - How to import with Condition folders

Probably I am missing something very obvious...

  • Update Brainstorm
  • Configure the process Import MEG/EEG: Existing epochs in order to obtain what you want (and make sure you really have existing epochs in the file, otherwise you need to select the "Events" process)
  • Generate the script for calling the process Import MEG/EEG: Existing epochs
  • Do not try to modify the list of parameters (this "GetAllEpochs" you added is not linked to anything). The process executed from the GUI or from a script do exactly the same thing. If there are issues that are not available in the process options, then they won't be available from a script.

Starting by reading the Scripting tutorial would probably help you:
https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting#Starting_a_new_script

1 Like