[Eeglablist] problem with pop_saveset

Arnaud Delorme adelorme at ucsd.edu
Wed Mar 27 21:08:41 PDT 2024


Dear Jeff,

There seems to be a carriage return in your path. This could be the issue.
EEGLAB .set files are MATLAB .mat files renamed with a different extensions. Try saving the dataset with MATLAB 

save(‘-mat’, ’test.set’, ‘EEG’);

Or

save(‘-mat’, fullfile(EEG.filepath, EEG.filename), ‘EEG’);

Arno

> On Mar 27, 2024, at 2:09 PM, K Jeffrey Eriksen via eeglablist <eeglablist at sccn.ucsd.edu> wrote:
> 
> I have a problem with pop_saveset that suddenly appeared at a seemingly random point in my pipeline. My outer loop runs through a set of subjects' SET files, and eventually saves 12 SET files for each input SET file, two for each of six frequency bands. After doing this for 39 input SET files, on the 40th it creates the first 8 output SET files and then throws the error below for the first of two files for the 5th frequency band. All the input and output SET files are the exact same size for each run. I traced the issue to line 278 in pop_saveset where it has failed to save the file in any of the accepted file versions. The error message indicates there might be Unicode characters involved, but I do no manipulation of characters. The outer loop has been working for a long time on this same input data set of 56 input SET files. All I have changed recently is to do some normalization of the timeseries data, which does not change the size of the data structures.
> 
> Please advise ASAP on what I can try to do to nail down the cause, this is holding up my project.
> 
> Thanks,
> -Jeff Eriksen
> 
> Saving dataset...
> Saving dataset...
> Saving dataset...
> Saving dataset...
> Saving dataset...
> Saving dataset...
> Saving dataset...
> Saving dataset...
> Saving dataset...
> Re-saving file using the 7.3 format that can handle large variables
> Cannot save in v6 format (Unicode characters?), using default (possible x20 slow down)
> Error using pop_saveset
> Error using save
> Unable to write file 'D:\Sorg_memory_project\BU
> lab\Budata\all_cue_react\Bu55_s20\run2\gama1.set'.
> 
> Error in save_eeglab_set_file (line 9)
> EEG = pop_saveset(EEG,'filename',catname,'filepath',sesPath);
> ________________________________
> IMPORTANT NOTICE: This communication, including any attachment, contains important information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed. If you are not the intended recipient, you should contact the sender and delete this message. Any unauthorized disclosure, copying, or distribution of this message is strictly prohibited. Nothing in this email, including any attachment, is intended to be a legally binding signature.
> _______________________________________________
> 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