@@ -689,8 +689,8 @@ class EddyInputSpec(FSLCommandInputSpec):
689689 desc = ("Final resampling method (jacobian/least " "squares)" ),
690690 )
691691
692- repol = traits .Bool (
693- False , argstr = "--repol" , desc = "Detect and replace outlier slices"
692+ repol = traits .Enum (
693+ True , argstr = "--repol" , desc = "Detect and replace outlier slices"
694694 )
695695 outlier_nstd = traits .Int (
696696 argstr = "--ol_nstd" ,
@@ -785,8 +785,8 @@ class EddyInputSpec(FSLCommandInputSpec):
785785 min_ver = "6.0.1" ,
786786 )
787787
788- estimate_move_by_susceptibility = traits .Bool (
789- False ,
788+ estimate_move_by_susceptibility = traits .Enum (
789+ True ,
790790 argstr = "--estimate_move_by_susceptibility" ,
791791 desc = "Estimate how susceptibility field changes with subject movement" ,
792792 min_ver = "6.0.1" ,
@@ -823,7 +823,7 @@ class EddyInputSpec(FSLCommandInputSpec):
823823 ),
824824 )
825825
826- use_cuda = traits .Bool ( False , desc = "Run eddy using cuda gpu" )
826+ use_cuda = traits .Enum ( True , desc = "Run eddy using cuda gpu" )
827827 cnr_maps = traits .Bool (
828828 False , desc = "Output CNR-Maps" , argstr = "--cnr_maps" , min_ver = "5.0.10"
829829 )
@@ -963,19 +963,9 @@ class Eddy(FSLCommand):
963963 --acqp=epi_acqp.txt --bvals=bvals.scheme --bvecs=bvecs.scheme \
964964 --imain=epi.nii --index=epi_index.txt --mask=epi_mask.nii \
965965 --interp=spline --resamp=jac --niter=5 --nvoxhp=1000 \
966- --out=.../eddy_corrected --slm=none'
967-
968- Running eddy on a CPU using OpenMP:
969- >>> eddy.inputs.use_cuda = False
970- >>> eddy.cmdline # doctest: +ELLIPSIS
971- 'eddy_openmp --flm=quadratic --ff=10.0 \
972- --acqp=epi_acqp.txt --bvals=bvals.scheme --bvecs=bvecs.scheme \
973- --imain=epi.nii --index=epi_index.txt --mask=epi_mask.nii \
974- --interp=spline --resamp=jac --niter=5 --nvoxhp=1000 \
975966 --out=.../eddy_corrected --slm=none'
976967
977968 Running eddy with slice-to-volume motion correction:
978- >>> eddy.inputs.use_cuda = True
979969 >>> eddy.inputs.mporder = 6
980970 >>> eddy.inputs.slice2vol_niter = 5
981971 >>> eddy.inputs.slice2vol_lambda = 1
0 commit comments