Skip to content

Commit c7ab0d8

Browse files
author
Sourcery AI
committed
'Refactored by Sourcery'
1 parent e8ec852 commit c7ab0d8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ def list_modalities(bids_pth: Path, sessions: list[str]) -> list[str]:
7070
def list_data_files(bids_pth: Path, sessions: list[str]) -> list[str]:
7171
"""Return the list of files in BIDS raw."""
7272
pattern = "sub-*/ses-*/*/*" if sessions else "sub-*/*/*"
73-
files = [v.name for v in bids_pth.glob(pattern) if "task-" in v.name]
74-
return files
73+
return [v.name for v in bids_pth.glob(pattern) if "task-" in v.name]
7574

7675

7776
def list_tasks(bids_pth: Path, sessions: list[str]) -> list[str]:

0 commit comments

Comments
 (0)