bids-matlab-tools icon indicating copy to clipboard operation
bids-matlab-tools copied to clipboard

`duration` not being made if it is not a column in EEG.event

Open neuromechanist opened this issue 1 year ago • 0 comments

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.

https://github.com/sccn/EEG-BIDS/blob/25acddb37886508d41d49438710b79e0c5ae2ffb/bids_writeeventfile.m#L112

neuromechanist avatar Sep 02 '24 20:09 neuromechanist