Skip to content

Commit

Permalink
Support "none" option.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Sep 18, 2024
1 parent bb4c632 commit a7cba42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xcp_d/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,15 @@ def init_single_subject_wf(subject_id: str):
file_format=config.workflow.file_format,
target_space=target_space,
)
if config.execution.confounds_config != "none":
confounds_config = yaml.safe_load(config.execution.confounds_config.read_text())
else:
confounds_config = None
confounds_dict = collect_confounds(
bold_file=bold_file,
preproc_dataset=config.execution.layout,
derivatives_datasets=config.execution.derivatives,
confound_spec=yaml.safe_load(config.execution.confounds_config.read_text()),
confound_spec=confounds_config,
)
run_data["confounds"] = confounds_dict

Expand Down

0 comments on commit a7cba42

Please sign in to comment.