Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Feb 3, 2025
1 parent ea5042e commit 82949a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cubids/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,13 @@ def _file_to_entity_set(filename):
Returns
-------
set
str
A set of entities extracted from the filename.
Examples
--------
>>> _file_to_entity_set("sub-01_ses-01_task-rest_bold.nii.gz")
'task-rest_suffix-bold'
"""
entities = parse_file_entities(str(filename))
return _entities_to_entity_set(entities)
Expand Down

0 comments on commit 82949a4

Please sign in to comment.