mne_bids.read_participants#

mne_bids.read_participants(fname, *, content=None)[source]#

Read a participants.tsv file.

Parameters:
fnamepath-like

Path to the participants.tsv file.

contentbytes | None

The file’s bytes, if already read, to be parsed instead of reading fname. If None, the file is read from fname.

Returns:
participantsdict

The rows keyed by subject label (participant_id without the sub- prefix), each a dict from column name to value. Values are strings, and n/a becomes None.

Notes

Added in version 0.21.