From 1d993d84efa24ef2167e589a35a6aac4a3c1d137 Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Tue, 19 Mar 2024 17:33:59 +0100 Subject: [PATCH] fix: variable name --- mriqc/cli/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mriqc/cli/parser.py b/mriqc/cli/parser.py index ecd2b7153..b4e82ec95 100644 --- a/mriqc/cli/parser.py +++ b/mriqc/cli/parser.py @@ -535,14 +535,14 @@ def parse_args(args=None, namespace=None): # Force initialization of the BIDSLayout config.execution.init() - participant_labels = [ + participant_label = [ d.name[4:] for d in config.execution.bids_dir.glob("sub-*") if d.is_dir() and d.exists() ] if config.execution.participant_label is not None: selected_label = set(config.execution.participant_label) - if (missing_subjects := selected_label - set(participant_labels)): + if (missing_subjects := selected_label - set(participant_label)): parser.error( "One or more participant labels were not found in the BIDS directory: " f"{', '.join(missing_subjects)}."