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 17, 2025
1 parent acf8476 commit c30cf15
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cubids/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ def _file_to_entity_set(filename):
str
A set of entities extracted from the filename.
Notes
-----
This function relies on the variable NON_KEY_ENTITIES from cubids.constants.
This is a set of entities to ignore in the entity set.
The constant may be modified by the CuBIDS class, which will remove "session"
if is_longitudinal is True and acq_group_level is "session".
Examples
--------
>>> _file_to_entity_set("sub-01_ses-01_task-rest_bold.nii.gz")
Expand Down

0 comments on commit c30cf15

Please sign in to comment.