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 951bacd commit 4a71c12
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 @@ -264,8 +264,11 @@ def create_tbss_3_postreg(name='tbss_3_postreg', estimate_skeleton=True):
# $FSLDIR/bin/fslmaths $FSLDIR/data/standard/FMRIB58_FA_1mm -mas mean_FA_mask mean_FA
maskstd = pe.Node(
fsl.ImageMaths(op_string="-mas", suffix="_masked"), name="maskstd")
maskstd.inputs.in_file = fsl.Info.standard_image(
"FMRIB58_FA_1mm.nii.gz")
if fsl.no_fsl():
warn('NO FSL found')
else:
maskstd.inputs.in_file = fsl.Info.standard_image(
"FMRIB58_FA_1mm.nii.gz")

# $FSLDIR/bin/fslmaths mean_FA -bin mean_FA_mask
binmaskstd = pe.Node(
Expand Down

0 comments on commit 4a71c12

Please sign in to comment.