When passed a EEGLAB EEG struct and the struct comes from a file that is saved as one file (ie: a .set) instead of two, EEG.datfile is empty ([]), thus line 729 (also line 738):
file = [dat.filepath filesep dat.datfile];
causes a directory instead of a file name to be passed to the input.param file(line 778), which then passes it to the binary which then tries to write to it and causes the following error:
I replaced the datfile method with the temp dat file method you used in the EEG.data input case, and then delete it at the end of the script in all cases which seems to avoid the problem. See attached: runamica15_pk.zip
Hi Jason,
When passed a EEGLAB EEG struct and the struct comes from a file that is saved as one file (ie: a .set) instead of two,
EEG.datfile
is empty ([]), thus line 729 (also line 738):file = [dat.filepath filesep dat.datfile];
causes a directory instead of a file name to be passed to theinput.param
file(line 778), which then passes it to the binary which then tries to write to it and causes the following error:I replaced the datfile method with the temp dat file method you used in the EEG.data input case, and then delete it at the end of the script in all cases which seems to avoid the problem. See attached: runamica15_pk.zip