Skip to content

Commit 6a026ac

Browse files
committed
fix: tbss3 should warn and return workflow when FSL not available
1 parent 4a71c12 commit 6a026ac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

nipype/workflows/dmri/fsl/tbss.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,11 @@ def create_tbss_3_postreg(name='tbss_3_postreg', estimate_skeleton=True):
284284
(maskgroup, maskgroup2, [("out_file", "in_file")]),
285285
(binmaskstd, maskgroup2, [("out_file", "in_file2")])])
286286

287-
outputnode.inputs.skeleton_file = fsl.Info.standard_image(
288-
"FMRIB58_FA-skeleton_1mm.nii.gz")
287+
if fsl.no_fsl():
288+
warn('NO FSL found')
289+
else:
290+
outputnode.inputs.skeleton_file = fsl.Info.standard_image(
291+
"FMRIB58_FA-skeleton_1mm.nii.gz")
289292
tbss3.connect([(binmaskstd, outputnode, [('out_file', 'groupmask')]),
290293
(maskstd, outputnode, [('out_file', 'meanfa_file')]),
291294
(maskgroup2, outputnode, [('out_file',

0 commit comments

Comments
 (0)