@@ -643,8 +643,8 @@ class EddyInputSpec(FSLCommandInputSpec):
643643 desc = ('Final resampling method (jacobian/least '
644644 'squares)' ))
645645
646- repol = traits .Bool (
647- False , argstr = '--repol' , desc = 'Detect and replace outlier slices' )
646+ repol = traits .Enum (
647+ True , argstr = '--repol' , desc = 'Detect and replace outlier slices' )
648648 outlier_nstd = traits .Int (
649649 argstr = '--ol_nstd' ,
650650 desc = 'Number of std off to qualify as outlier' ,
@@ -726,8 +726,8 @@ class EddyInputSpec(FSLCommandInputSpec):
726726 xor = ['slice_order' ],
727727 min_ver = '6.0.1' )
728728
729- estimate_move_by_susceptibility = traits .Bool (
730- False ,
729+ estimate_move_by_susceptibility = traits .Enum (
730+ True ,
731731 argstr = '--estimate_move_by_susceptibility' ,
732732 desc = 'Estimate how susceptibility field changes with subject movement' ,
733733 min_ver = '6.0.1' )
@@ -759,7 +759,7 @@ class EddyInputSpec(FSLCommandInputSpec):
759759 'date are acquired on a set of b-value '
760760 'shells' ))
761761
762- use_cuda = traits .Bool ( False , desc = 'Run eddy using cuda gpu' )
762+ use_cuda = traits .Enum ( True , desc = 'Run eddy using cuda gpu' )
763763 cnr_maps = traits .Bool (
764764 False , desc = 'Output CNR-Maps' , argstr = '--cnr_maps' , min_ver = '5.0.10' )
765765 residuals = traits .Bool (
@@ -844,33 +844,31 @@ class Eddy(FSLCommand):
844844
845845 >>> from nipype.interfaces.fsl import Eddy
846846
847- Running eddy on an Nvidia GPU using cuda :
847+ Running eddy on a CPU using OpenMP :
848848 >>> eddy = Eddy()
849849 >>> eddy.inputs.in_file = 'epi.nii'
850850 >>> eddy.inputs.in_mask = 'epi_mask.nii'
851851 >>> eddy.inputs.in_index = 'epi_index.txt'
852852 >>> eddy.inputs.in_acqp = 'epi_acqp.txt'
853853 >>> eddy.inputs.in_bvec = 'bvecs.scheme'
854854 >>> eddy.inputs.in_bval = 'bvals.scheme'
855- >>> eddy.inputs.use_cuda = True
856- >>> eddy.cmdline # doctest: +ELLIPSIS
857- 'eddy_cuda --flm=quadratic --ff=10.0 \
855+ >>> eddy.cmdline # doctest: +ELLIPSIS
856+ 'eddy_openmp --flm=quadratic --ff=10.0 \
858857 --acqp=epi_acqp.txt --bvals=bvals.scheme --bvecs=bvecs.scheme \
859858 --imain=epi.nii --index=epi_index.txt --mask=epi_mask.nii \
860859 --interp=spline --resamp=jac --niter=5 --nvoxhp=1000 \
861860 --out=.../eddy_corrected --slm=none'
862861
863- Running eddy on a CPU using OpenMP :
864- >>> eddy.inputs.use_cuda = False
865- >>> eddy.cmdline # doctest: +ELLIPSIS
866- 'eddy_openmp --flm=quadratic --ff=10.0 \
862+ Running eddy on an Nvidia GPU using cuda :
863+ >>> eddy.inputs.use_cuda = True
864+ >>> eddy.cmdline # doctest: +ELLIPSIS
865+ 'eddy_cuda --flm=quadratic --ff=10.0 \
867866 --acqp=epi_acqp.txt --bvals=bvals.scheme --bvecs=bvecs.scheme \
868867 --imain=epi.nii --index=epi_index.txt --mask=epi_mask.nii \
869868 --interp=spline --resamp=jac --niter=5 --nvoxhp=1000 \
870869 --out=.../eddy_corrected --slm=none'
871870
872871 Running eddy with slice-to-volume motion correction:
873- >>> eddy.inputs.use_cuda = True
874872 >>> eddy.inputs.mporder = 6
875873 >>> eddy.inputs.slice2vol_niter = 5
876874 >>> eddy.inputs.slice2vol_lambda = 1
0 commit comments