Skip to content

Commit

Permalink
fix: variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Mar 19, 2024
1 parent 26bfaf4 commit 1d993d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mriqc/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}."
Expand Down

0 comments on commit 1d993d8

Please sign in to comment.