Skip to content

Commit bf3e10e

Browse files
authored
Merge pull request #9 from cpp-lln-lab/sourcery/marco_create-tsv
add code to create raw tsv and make a markdown table + add submodules (Sourcery refactored)
2 parents e8ec852 + c7ab0d8 commit bf3e10e

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)