From 2d0b10cf34164ca4db530986e154261b4bb1a2bc Mon Sep 17 00:00:00 2001 From: Ali Khan Date: Sun, 8 Dec 2024 22:48:03 -0500 Subject: [PATCH] fix logical error --- hippunfold/workflow/rules/nnunet.smk | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/hippunfold/workflow/rules/nnunet.smk b/hippunfold/workflow/rules/nnunet.smk index 6bb452ff..ab21a4b0 100644 --- a/hippunfold/workflow/rules/nnunet.smk +++ b/hippunfold/workflow/rules/nnunet.smk @@ -20,11 +20,9 @@ def get_nnunet_input(wildcards): desc="preproc", hemi="{hemi}", ) - if ( - config["modality"] == "T1w" - or config["modality"] == "T2w" - and config["force_nnunet_model"] == "T1T2w" - ): + if (config["modality"] == "T1w" or config["modality"] == "T2w") and config[ + "force_nnunet_model" + ] == "T1T2w": return (T1w_nii, T2w_nii) elif config["modality"] == "T2w":