question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

eeglab events backward compatibility

See original GitHub issue

Currently 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 way egglab 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 in events 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 pass event_id={str(x): x for x in range(255)} when constructing events from annotations.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:43 (43 by maintainers)

github_iconTop GitHub Comments

1reaction
mmagnuskicommented, May 2, 2019

@massich - this was done, right, the issue can be closed?

1reaction
mmagnuskicommented, Dec 14, 2018

And even if event_id does not do much when sim_channel is False it is more important to inform the user that event_id is going to be removed and events should read in a different way.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found