sccn / EEG-BIDS

21 stars 17 forks source link

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

Open CPernet opened 4 months ago

CPernet commented 4 months ago

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'}}
dungscout96 commented 3 months ago

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';