We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8ec852 commit c7ab0d8Copy full SHA for c7ab0d8
tools/utils.py
@@ -70,8 +70,7 @@ def list_modalities(bids_pth: Path, sessions: list[str]) -> list[str]:
70
def list_data_files(bids_pth: Path, sessions: list[str]) -> list[str]:
71
"""Return the list of files in BIDS raw."""
72
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
+ return [v.name for v in bids_pth.glob(pattern) if "task-" in v.name]
75
76
77
def list_tasks(bids_pth: Path, sessions: list[str]) -> list[str]:
0 commit comments