MNE version : 1.1.0
OS : windows 10
Hello,
I have been trying to work with some eeg file in “.set” format. My eeg dataset is already in epoch form, so i used “mne.io.read_epochs_eeglab” to load the files. Now the problem is , the epoch duration is not the one i want, and now i want to take epoch of 5 sec from this dataset. For this purpose i used
“epochs = mne.make_fixed_length_epochs(raw, duration=5, overlap=1)”
this gives the following error :-
“raw must be an instance of BaseRaw, got <class ‘mne.io.eeglab.eeglab.EpochsEEGLAB’> instead.”
What can i do now to create epochs of my desired length? please help
ps: for your convenience i am adding some samples of the dataset Dataset
Looking at one of the files, it shows:
<EpochsEEGLAB | 55 events (all good), -2 - 1.99902 sec, baseline off, ~110.1 MB, data loaded,
'RSEC epoch': 55>
The epochs are only 4 seconds long. There is no way to extend the duration, the extra 1 second is simply missing from the file.
2 Likes