[Eeglablist] File size does not correspond to the dataset information

Gabriel Della Bella gabyarg25 at gmail.com
Tue May 18 13:07:32 PDT 2021

So I was digging through the code of the function responsible for the error
(eeg_getdatact.m) and it seems the error is produced by an inconsistency
between the shape of the data matrix and the number of trials defined by
EEG.trials. The way I solved it was by modifying the eeg_getdatact code and
redefined EEG.trials to the correct number based on the size of the data
matrix right before the use of reshape. So for example if data is a 128 x
4000 x 16 matrix (channel x sample x trial) I defined EEG.trials = 16
instead of whatever number it had. This is a suboptimal solution but it's
the only one I could come up with.

El mar, 18 de may. de 2021 a la(s) 13:11, Eren Günseli (
gunseli.eren at gmail.com) escribió:

> I have been getting this error as well. To complicate things further, it
> seems to be somewhat random such that I usually don't get this error for
> the very same dataset, but only occasionally.
> I have Matlab 2020b and eeglab 2021.
> On Tue, May 18, 2021 at 6:50 PM Gabriel Della Bella via eeglablist <
> eeglablist at sccn.ucsd.edu> wrote:
>> Hi, I was trying to import a .set file using the pop_loadset() function
>> but
>> the following error occurred: "The file size on disk does not correspond
>> to
>> the dataset information".
>> I also tried using the GUI but the same error occurs (v2019.1). Since it
>> is
>> an error and not a warning I'm unable to access the data. Is there a way
>> to
>> solve this problem, maybe rewriting the dataset information or perhaps
>> recovering the epoch data?
>> thank you!
>> Gabriel
>> _______________________________________________
>> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>> To unsubscribe, send an empty email to
>> eeglablist-unsubscribe at sccn.ucsd.edu
>> For digest mode, send an email with the subject "set digest mime" to
>> eeglablist-request at sccn.ucsd.edu

More information about the eeglablist mailing list