Closed CorentinWicht closed 2 years ago
hey @CorentinWicht
I suspect this is because you have a string for EEGChannelCount
.
So change :
"EEGChannelCount": ""
to
"EEGChannelCount": 0
should fix that error.
Though obviously you will want "EEGChannelCount" to not be 0
but actually be the number of EEG channels included in the recording (for example, 64, 128, 256).
Hello @Remi-Gau ,
Many thanks for your prompt reply, this is also what I suspected.
But will I have to do it manually for the ~300 files or isn't there here is an issue here related to the BIDS plugin not being able to detect the number of channels in my files ?
I think it would take less time to wait for a fix and re-run the BIDS export than to manually adjust all the individual .json files...
I will let the plugin developpers confirm but it seems that you can set that info manually at export to override info read from file:
maybe you can use that approach.
One reason behind this behavior is that the channels can contain EXG and AUX channels as well. Do your channels have 10-05 labels? If so, you can script in readlocs
with a template location file (e.g. dipfit BEM file) which will populate the type
field in your data structure. Else, you could script in a way to assign EEG.chanlocs.type
before the export step, and bids export will tally these up.
This field should automatically populate. We have checked with the GitHub version that it does. Would you mind checking with your data (using the Github version of the plugin)? Thanks Remi for your comment. Closing this bug for now, but feel free to reopen.
Dear Developper,
I've just exported BIDS files for the first time using your plugin and while applying the
pop_validatebids
function to actually validate the output, I got the following message:That's how my "./sub-001/ses-01/eeg/sub-001_ses-01_task-GNG_eeg.json" looks like:
Would you have any idea why I got these error messages when trying to validate the output?
Many thanks and best regards,
Corentin Wicht