Skip to content

Commit

Permalink
fix: tbss3 should warn and return workflow when FSL not available
Browse files Browse the repository at this point in the history
  • Loading branch information
satra committed Feb 19, 2018
1 parent 4a71c12 commit 6a026ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nipype/workflows/dmri/fsl/tbss.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,11 @@ def create_tbss_3_postreg(name='tbss_3_postreg', estimate_skeleton=True):
(maskgroup, maskgroup2, [("out_file", "in_file")]),
(binmaskstd, maskgroup2, [("out_file", "in_file2")])])

outputnode.inputs.skeleton_file = fsl.Info.standard_image(
"FMRIB58_FA-skeleton_1mm.nii.gz")
if fsl.no_fsl():
warn('NO FSL found')
else:
outputnode.inputs.skeleton_file = fsl.Info.standard_image(
"FMRIB58_FA-skeleton_1mm.nii.gz")
tbss3.connect([(binmaskstd, outputnode, [('out_file', 'groupmask')]),
(maskstd, outputnode, [('out_file', 'meanfa_file')]),
(maskgroup2, outputnode, [('out_file',
Expand Down

0 comments on commit 6a026ac

Please sign in to comment.