Skip to content

Commit

Permalink
Fix init_qc_report_wf connections when linc-qc and abcc-qc are disabl…
Browse files Browse the repository at this point in the history
…ed (#1314)
  • Loading branch information
tsalo authored Nov 4, 2024
1 parent 3c7e875 commit b26cfee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
6 changes: 6 additions & 0 deletions xcp_d/workflows/bold/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit b26cfee

Please sign in to comment.