Skip to content

Commit

Permalink
COMP: Fixed transform type to be a list as is required.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmjohnson committed Jan 13, 2013
1 parent 30369db commit aee088d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions AutoWorkup/PipeLineFunctionHelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion AutoWorkup/WorkupT1T2TissueClassify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit aee088d

Please sign in to comment.