Closed DrCri95 closed 3 years ago
Hi,
Right, I know exactly where the error occurs but not exactly why. Somehow there's a mismatch between the number of times extracted for the baseline and the product of the number of trials, number of epochs, and number of channels, which suggests to me there might be either an extra epoch or an extra channel somewhere. An extra epoch seems more likely to me. I need a bit more info about the data (or ideally one of the problematic data files) - sampling rate? number of channels?
Another couple of questions - if you try a different baseline period, does it work? If you don't subtract the baseline at all, does it work? Does subsequently subtracting the baseline work? If you epoch it without subtracting the baseline, check the epoch structure using epochs(your_epoched_data)
- are there the right number of epochs? I suspect there might be multiple rows for one epoch in the epochs
structure... so instead of, say epoch 10 having one row, there are two rows with epoch number 10... if so, I've an easy fix in mind :)
Cheers, Matt
This might be fixed on the dev branch now.
Matt
Hi Matt,
Thank you very much for your quick response!
Until today I have not been able to do the checks you have suggested. The good news is that my problem has been solved, I have extracted the epochs without getting any errors, after having installed the latest development version.
Cheers, Cris
Hi,
First of all, thanks a lot for this R package, really useful!
I've been preprocessing EEG data (n = 40 participants) and everything is okay for 38 datasets. However, I got this error in 2 datasets when extracting epochs. I've been reviewing these 2 files in more detail and I could not find any issue within these datasets (correct events, correct signals, and so on).
Thanks!