Skip to content

Commit

Permalink
Fix bad warning (#1030)
Browse files Browse the repository at this point in the history
* Update inputs.py

* Update inputs.py
  • Loading branch information
camillebrianceau authored Dec 5, 2023
1 parent 5894f73 commit ee5649d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions clinica/utils/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ def _list_subjects_sub_folders(
)
folder_content = [f for f in root_dir.iterdir()]
subjects_sub_folders = [
sub
for sub in folder_content
if (sub.name.startswith("sub-") and (root_dir / sub).is_dir())
sub for sub in folder_content if (sub.name.startswith("sub-") and sub.is_dir())
]
if len(subjects_sub_folders) == 0 and not groups_dir.is_dir():
cprint(msg=warning_msg, lvl="warning")
Expand Down

0 comments on commit ee5649d

Please sign in to comment.