bids-validator
bids-validator copied to clipboard
Participant data not being returned
I'm currently trying to add support for HED validation in participants.tsv
files, and I'm running into an issue getting the participant data passed to HED. First of all, it seems the participants
object doesn't include the full row, but I can't even use that data because I'm just getting null
when I try to access it (the main point of this issue). I've tried it on the fmri_ds002790s_hed_aomic
hed-examples dataset, which clearly has a participants.tsv
, to no avail.
cc @rwblair
Just a few extra comments:
- The dataset above is fmri_ds002790s_hed_aomic.
- We noticed that if we removed a line from the
participants.tsv
file that error 40 wasn't being thrown indicating that a subject was missing an entry in the participants file.
The assignment in https://github.com/bids-standard/bids-validator/blob/6fc6d152b52266934575442e61f1477ba18f42ec/bids-validator/validators/tsv/validate.js#L40 is not showing up upon returning to fullTest
. null
is passed as the value of participants
into the function, so perhaps the assignment is being ignored? (Is null
passed by value?) The assignment in https://github.com/bids-standard/bids-validator/blob/6fc6d152b52266934575442e61f1477ba18f42ec/bids-validator/validators/tsv/validate.js#L45 seems to work, so the code is being executed.
@rwblair