From 2bca701b85e64837dec83a3c24d6799f6f8c2096 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Fri, 8 Mar 2024 11:03:10 -0500 Subject: [PATCH] Generate T2w executive summary plots when T1w is also available (#1078) --- xcp_d/workflows/execsummary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xcp_d/workflows/execsummary.py b/xcp_d/workflows/execsummary.py index 80fccf3cd..6cddd0f86 100644 --- a/xcp_d/workflows/execsummary.py +++ b/xcp_d/workflows/execsummary.py @@ -463,7 +463,7 @@ def init_execsummary_functional_plots_wf( # Start plotting the overlay figures # T1 in Task, Task in T1, Task in T2, T2 in Task - anatomicals = ["t1w"] if t1w_available else [] + ["t2w"] if t2w_available else [] + anatomicals = (["t1w"] if t1w_available else []) + (["t2w"] if t2w_available else []) for anat in anatomicals: # Resample BOLD to match resolution of T1w/T2w data resample_bold_to_anat = pe.Node( @@ -572,7 +572,7 @@ def init_execsummary_anatomical_plots_wf( # Start plotting the overlay figures # Atlas in T1w/T2w, T1w/T2w in Atlas - anatomicals = ["t1w"] if t1w_available else [] + ["t2w"] if t2w_available else [] + anatomicals = (["t1w"] if t1w_available else []) + (["t2w"] if t2w_available else []) for anat in anatomicals: # Resample anatomical to match resolution of template data resample_anat = pe.Node(