Skip to content

Commit c727935

Browse files
committed
fixed logic for excluded subjects
1 parent 68455cb commit c727935

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

petdeface/petdeface.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,8 +1015,9 @@ def main(): # noqa: max-complexity: 12
10151015
full_message = f"{wrapped_message}\n\n{command_message}\n\n{bad_files_message}"
10161016

10171017
# Check if all problematic subjects are already in the exclude list
1018-
bad_tw1s_excluded = [t1w in args.participant_label_exclude for t1w in bad_t1w_subject_ids ]
1019-
if False in bad_t1w_subject_ids:
1018+
bad_t1ws_excluded = [bad in args.participant_label_exclude for bad in bad_t1w_subject_ids ]
1019+
1020+
if False in bad_t1ws_excluded:
10201021
raise Exception(full_message)
10211022
else:
10221023
print(bad_files_message)

0 commit comments

Comments
 (0)