You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could be done this way and should be able to handle optional entities.
frombidsimportBIDSLayoutconfig_file="config_pybids.json"target_dir="."layout=BIDSLayout(target_dir, validate=False, config=config_file)
entities= {
"subject": "01",
"session": "1",
"sample": "A",
"run": 1,
"task": "nox",
"suffix": "ephys",
}
# Define the pattern to build out of the components passed in a dictionarypattern="sub-{subject}/[ses-{session}]/sub-{subject}[_ses-{session}]_sample-{sample}_task-{task}[_run-{run}]_{suffix}.nwb"layout.build_path(entities, pattern, validate=False)
The text was updated successfully, but these errors were encountered:
Could be done this way and should be able to handle optional entities.
The text was updated successfully, but these errors were encountered: