bids-matlab-tools
bids-matlab-tools copied to clipboard
`duration` not being made if it is not a column in EEG.event
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