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.
2 parents e8ec852 + c7ab0d8 commit bf3e10eCopy full SHA for bf3e10e
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