bids-matlab-tools icon indicating copy to clipboard operation
bids-matlab-tools copied to clipboard

Update pop_importbids.m

Open nicalbee opened this issue 1 year ago • 3 comments

Added code to check for participant's group membership. If the EEG.group variable is empty, then the code looks in the participants.tsv file, adding it to the EEG.group variable if it's found. This is then included in the Study Info GUI in EEGLAB

nicalbee avatar Apr 30 '24 02:04 nicalbee

This is a great idea, but the code looks too complex for what it achieves. Also, are you sure it does not already work? STUDY.datasetinfo should have as fields all the columns of participants.tsv @dungscout96 can you look?

arnodelorme avatar Apr 30 '24 02:04 arnodelorme

Thanks @arnodelorme - I have simplified the code now, but unsure whether another pull will interfere with this one. I definitely wasn't getting any of the group information imported before I implemented this adjustment.

nicalbee avatar Apr 30 '24 02:04 nicalbee

If you update your branch, then the pull request should be automatically be updated.

arnodelorme avatar Apr 30 '24 03:04 arnodelorme