[Eeglablist] Editing eventcodes in eventlist
Andrew X Stewart
axstewart at ucdavis.edu
Thu Mar 12 13:36:10 PDT 2020
Hi Rebecca,
Yes, it is possible to edit the eventcodes in ERPLAB.
One way to edit the eventcodes is by:
- generating the EventList in ERPLAB
- exporting that text file (thru EEGLAB > ERPLAB > EventList > Export EventList to text file)
- editing this as desired a text editor
- re importing this EventList the EEG set, (thru EEGLAB > ERPLAB > EventList > Import EventList from text file)
If using this method, I recommend using a good raw text editor program (like the brilliant https://www.sublimetext.com ),
rather than something like Word, and being careful to not mess up the formatting of that text file.
For scripting, there are some hints here:
https://github.com/lucklab/erplab/wiki/Scripting-Guide
If you are still having trouble, could you email me your EventList text and EEG .set file?
Best,
Andrew X Stewart
-----------------------------------------------------
Dr Andrew X Stewart, PhD
Postdoctoral Research Scholar
ERPLAB Team
University of California, Davis
https://github.com/lucklab/erplab/wiki
On 3/4/2020 8:58 AM, Rebecca Geiselmann wrote:
Hello everybody,
I would like to edit the eventcodes in the eventlist created by ERP lab.
In my case the most efficient way seems to be: saving the eventlist as a .txt. file, changing the event codes in the .txt file and uploading/applying the edited version.
Nevertheless, I am facing several problems on the way (both using the GUI and a script)
1) Using the GUI:
When I upload the edited eventlist under ERP lab - Eventlist - Create EEG Eventlist - Advanced, it shows an error message saying: 'There is one or more invalid eventcode entries’.
2) Ideally I would like to edit the eventlist using a script.
However, using a script, I cannot figure out how to save the eventlist as a .txt file (not a .set file) and how to convert the edited .txt file back into a .set file.
I tried to make use of ‘ERP.history’. Nevertheless, this command unfortunately shows the following error message: ‘Dot indexing is not supported for variables of this type.’
Thank you very much in advance for your help.
Kind regards,
Rebecca
More information about the eeglablist
mailing list