Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
neuromechanist opened this issue Sep 2, 2024 · 0 comments
Open

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

neuromechanist opened this issue Sep 2, 2024 · 0 comments

Comments

@neuromechanist
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant