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

allowing to add 'Levels' for the task-x_events.json #200

Open
CPernet opened this issue Mar 5, 2024 · 1 comment
Open

allowing to add 'Levels' for the task-x_events.json #200

CPernet opened this issue Mar 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@CPernet
Copy link
Contributor

CPernet commented Mar 5, 2024

Running bids_export as command line and passing a structure for 'eInfoDesc'.
For instance

eventsinfo.value.LongName       = 'Event marker';
eventsinfo.value.Description    = 'Marker value associated with the event';

Those markers can have levels as per the BIDS specification, we should, therefore, be able to pass cells of cells that are written by jsonwrite.m as concatenated arrays (as per spec)

 eventsinfo.value.Levels = {{'Marker1', '60dB sound'}, {'Marker1', '70dB sound'}, {'Marker1', '80dB sound'}}
@CPernet CPernet added the enhancement New feature or request label Mar 5, 2024
@dungscout96
Copy link
Contributor

This syntax should work. Can you check?

eventsinfo.value.Levels.Marker1 = '60dB sound';
eventsinfo.value.Levels.Marker2 = '70dB sound';
eventsinfo.value.Levels.Marker3 = '80dB sound';

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

No branches or pull requests

2 participants