From b26cfeee6908a89149a07d4a2287bfec4a784886 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Mon, 4 Nov 2024 14:29:08 -0500 Subject: [PATCH] Fix init_qc_report_wf connections when linc-qc and abcc-qc are disabled (#1314) --- .vscode/settings.json | 4 ++++ xcp_d/workflows/bold/plotting.py | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3e91b9ae7..3aa558b75 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,4 +7,8 @@ "editor.rulers": [99] }, "python.analysis.typeCheckingMode": "off", + "ruff.configuration": "pyproject.toml", + "ruff.lineLength": 99, + "editor.defaultFormatter": "charliermarsh.ruff", + "flake8.enabled": false, } diff --git a/xcp_d/workflows/bold/plotting.py b/xcp_d/workflows/bold/plotting.py index 125de0e6c..c57115404 100644 --- a/xcp_d/workflows/bold/plotting.py +++ b/xcp_d/workflows/bold/plotting.py @@ -439,6 +439,12 @@ def init_qc_report_wf( (make_qc_plots_es, ds_report_postproc_qc_es, [('after_process', 'in_file')]), ]) # fmt:skip + if config.workflow.file_format != 'nifti' and not ( + config.workflow.linc_qc or config.workflow.abcc_qc + ): + # Need to explicitly add the inputnode to the workflow, since it's not set otherwise. + workflow.add_nodes([inputnode]) + return workflow