-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow opening epoched EEGLAB .set files without any events #6610
Comments
Can you share a file so we can test?
|
@agramfort Sure thing. Here is one file. https://drive.google.com/open?id=1hhc5VC90M4cDs8vQhWf43KhdGI4bubFx |
this file is broken:
ipdb> eeg.data
'clean-prestimulus.fdt'
I don't have this file.
make sure you use eeglab save routines to save your files.
… |
@agramfort Eeglab reader should work in this case too, I think (it would work in eeglab from what I remember). The easiest is if you rename both files so that @alamkanak Which mne-python version are you using? There have been problems with no events some time ago but they were fixed. Can you reproduce the problem with mne-python master branch? Could you also paste the full error traceback when trying to open the file with read_epochs_eeglab? |
Ok, I looked at the files. The reading fails on master due to the fact that this is an epochs file without events. Also the |
@mmagnuski Thank you for looking into it. To obtain that file, I epoched the EEG from -1000ms to -100ms in eeglab. So the eeg signals end 100ms before the events. This is because I am only interested in that part of the signals. I had to crop that in eeglab due to a standard pipeline and I must not do that later with mne. |
@alamkanak Thanks, which eeglab version were you using then? I am just wondering if eeglab always drops information about epoching events if they are outside of epoch's range (even in |
I'd be fine with emitting a warning that events information has been lost and still reading the file, @mmagnuski can you make a PR? |
Sure, I can do it this week - would we populate event_id and events and other necessary fields (not sure what other) with some default values then? |
Yes I would just make |
@mmagnuski do you still plan to look into this? |
Yes, sorry, I completely forgot. But I won't be able to do it this year. I can get to it on Friday, though. |
Whenever you can is good. Thx
|
so i have a rest eeg data(.set), epochs=119,but events = 0 ,what should i do can read this data?please |
It is obvious that when you have an epoched
.set
file exported from eeglab with no events in it, mne fails to load it withread_epochs_eeglab
orread_raw_eeglab
. When trying to open withread_epochs_eeglab
, it throws the error:I also tried to open it by setting
events
parameter to empty array andNone
but it still failed. And when trying to open withread_raw_eeglab
, it throws the error:I really need to open the epoched set file with no events in it.
The text was updated successfully, but these errors were encountered: