eeglab events backward compatibility
See original GitHub issueCurrently when reading eeglab files I get deprecation warnings because the mne function internally uses read_events_eeglab
and not the function to read events as annotations and then back as events. I am sure this is temporary, but it is annoying enough that I can volunteer to fix it. 😃
And since I am volunteering - some other things regarding backwards compatibility of the new system with the new one:
- I was reading a file today that gave no events when read the old way (read then
mne.find_events
) but when read with the new wayegglab events -> annotations -> events array
gave one event (which is correct). It was not on my computer so I cannot check or share the file at the moment but I should be able in a day or so. - I think the eeglab reader originally converted integer event types (
EEG.events.type
) to the same integer values inevents
array. Now, when turning annotations to events the events are numbered according to their presentation order and the correct values are given in a separate dict. That means that I have to correct the values myself (because otherwise every subject could have different event values) or passevent_id={str(x): x for x in range(255)}
when constructing events from annotations.
Issue Analytics
- State:
- Created 5 years ago
- Comments:43 (43 by maintainers)
Top Results From Across the Web
[Eeglablist] Rejecting data using events
However, while preserving backward compatibility, we have added a duration field to each event that will be standard and could be processed ...
Read more >b. Events - EEGLAB Wiki
Once event information is imported, EEGLAB copies the resulting EEG.event structure to a back-up (ur) copy, EEG.urevent, and creates links from each event...
Read more >The EEGLAB News - Issue #13 - September 2022
More than 20 EEGLAB functions as well as the Firfilt plug-in were updated to accommodate this change, which is fully backward compatible.
Read more >EEGLAB, SIFT, NFT, BCILAB, and ERICA: New Tools for ...
Key EEGLAB features include(1)an event structure and functions for importing, ... Backwards compatibility to MATLAB 7.1 is attempted (and reached for most ...
Read more >Epoch EEG data between two events, instead of min_max ...
vhdr file in eeglab and this loads automatically the event with it (from a .vmrk file). The event markers just indicate the moment...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@massich - this was done, right, the issue can be closed?
And even if
event_id
does not do much whensim_channel
is False it is more important to inform the user thatevent_id
is going to be removed and events should read in a different way.