AFAIK, duration is not a default column in EEG.event. So, if duration is not present in the EEG.event and the user has not mentioned it, the line below will skip creating the duration column. This makes the dataset incompatible with BIDS.
I think the second condition should be removed.
|
if ~any(strcmp(bids_fields,'duration')) && isfield(EEG.event, 'duration'), opt.eInfo(end+1,:) = { 'duration' 'duration' }; end |
AFAIK,
durationis not a default column inEEG.event. So, ifdurationis not present in theEEG.eventand the user has not mentioned it, the line below will skip creating thedurationcolumn. This makes the dataset incompatible with BIDS.I think the second condition should be removed.
EEG-BIDS/bids_writeeventfile.m
Line 112 in 25acddb