From aee088d6faa666a6e57c4d9c3ab82dbb74c96169 Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Sun, 13 Jan 2013 16:16:17 -0600 Subject: [PATCH] COMP: Fixed transform type to be a list as is required. --- AutoWorkup/PipeLineFunctionHelpers.py | 2 ++ AutoWorkup/WorkupT1T2TissueClassify.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/AutoWorkup/PipeLineFunctionHelpers.py b/AutoWorkup/PipeLineFunctionHelpers.py index fb91217b..41e031a7 100644 --- a/AutoWorkup/PipeLineFunctionHelpers.py +++ b/AutoWorkup/PipeLineFunctionHelpers.py @@ -16,6 +16,8 @@ POSTERIORS = ['WM', 'SURFGM', 'ACCUMBEN', 'CAUDATE', 'PUTAMEN', 'GLOBUS', 'THALAMUS', 'HIPPOCAMPUS', 'CRBLGM', 'CRBLWM', 'CSF', 'VB', 'NOTCSF', 'NOTGM', 'NOTWM', 'NOTVB', 'AIR'] +def convertToList(element): + return [ element ] def makeListOfValidImages(imageFile): diff --git a/AutoWorkup/WorkupT1T2TissueClassify.py b/AutoWorkup/WorkupT1T2TissueClassify.py index af6f3e7d..44a975c7 100644 --- a/AutoWorkup/WorkupT1T2TissueClassify.py +++ b/AutoWorkup/WorkupT1T2TissueClassify.py @@ -200,7 +200,7 @@ def MakeInverseTransformFileName(TransformFileName): """### HACK: This function is to work around a deficiency in BRAINSABCext where the inverse transform name is not being computed properly in the list outputs""" fixed_inverse_name = TransformFileName.replace(".h5", "_Inverse.h5") - return fixed_inverse_name + return [ fixed_inverse_name ] tissueClassifyWF.connect([(BABCext, outputsSpec, [(('atlasToSubjectTransform', MakeInverseTransformFileName), "atlasToSubjectInverseTransform")]), ]) tissueClassifyWF.connect(BABCext, 'outputLabels', outputsSpec, 'outputLabels')