get_data¶
- get_data(task: str, root: str | PathLike, prefix: str = 'BIDS-\\d\\.\\d_') BIDSLayout[source][source]¶
Gets the data for a subject and task.
- Parameters:
- Returns:
layout – The BIDSLayout for the subject.
- Return type:
BIDSLayout
Examples
>>> import mne >>> bids_root = mne.datasets.epilepsy_ecog.data_path(verbose=False) >>> parent = op.dirname(bids_root) >>> get_data('epilepsy-ecog-data', parent, "MNE-") BIDS Layout: ... | Subjects: 1 | Sessions: 1 | Runs: 0