sccn / EEG-BIDS

21 stars 17 forks source link

Extensions Writing Incorrectly (..set) #183

Closed peclayson closed 1 year ago

peclayson commented 1 year ago

I am running into an issue where the eeg file is getting written as (..set & .fdt).

I found in bids_export.m that it looks like lines 796-799 contain the culprit.

tInfo = opt.tInfo;
[~,~,ext] = fileparts(fileIn);
fileOut = [fileBase '_eeg.' ext];
fprintf('Processing file %s\n', fileOut);

fileOut = [fileBase '_eeg.' ext]; should be fileOut = [fileBase '_eeg' ext];

ext already contains the . from fileparts.

I'm using eeglab set files if that is relevant.

arnodelorme commented 1 year ago

Thank you. This was fixed in d8aec1b