Skip to content

Commit

Permalink
Update cubids.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Jan 17, 2025
1 parent 336155e commit 3f23bd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cubids/cubids.py
Original file line number Diff line number Diff line change
Expand Up @@ -1744,6 +1744,9 @@ def get_entity_value(path, key):
def build_path(filepath, out_entities, out_dir, schema):
"""Build a new path for a file based on its BIDS entities.
This function could ultimately be replaced with bids.BIDSLayout.build_path(),
but that method doesn't use the schema.
Parameters
----------
filepath : str
Expand Down Expand Up @@ -1871,7 +1874,7 @@ def build_path(filepath, out_entities, out_dir, schema):
>>> build_path(
... "/input/sub-01/ses-01/func/sub-01_ses-01_task-meg_bold.nii.gz",
... {"datatype": "func", "acquisition": "VAR", "suffix": "bold"},
... {"datatype": "func", "acquisition": "VAR", "task": "meg", "suffix": "bold"},
... "/output",
... schema,
... )
Expand Down

0 comments on commit 3f23bd2

Please sign in to comment.