@@ -643,8 +643,8 @@ class EddyInputSpec(FSLCommandInputSpec):
643
643
desc = ('Final resampling method (jacobian/least '
644
644
'squares)' ))
645
645
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' )
648
648
outlier_nstd = traits .Int (
649
649
argstr = '--ol_nstd' ,
650
650
desc = 'Number of std off to qualify as outlier' ,
@@ -726,8 +726,8 @@ class EddyInputSpec(FSLCommandInputSpec):
726
726
xor = ['slice_order' ],
727
727
min_ver = '6.0.1' )
728
728
729
- estimate_move_by_susceptibility = traits .Bool (
730
- False ,
729
+ estimate_move_by_susceptibility = traits .Enum (
730
+ True ,
731
731
argstr = '--estimate_move_by_susceptibility' ,
732
732
desc = 'Estimate how susceptibility field changes with subject movement' ,
733
733
min_ver = '6.0.1' )
@@ -759,7 +759,7 @@ class EddyInputSpec(FSLCommandInputSpec):
759
759
'date are acquired on a set of b-value '
760
760
'shells' ))
761
761
762
- use_cuda = traits .Bool ( False , desc = 'Run eddy using cuda gpu' )
762
+ use_cuda = traits .Enum ( True , desc = 'Run eddy using cuda gpu' )
763
763
cnr_maps = traits .Bool (
764
764
False , desc = 'Output CNR-Maps' , argstr = '--cnr_maps' , min_ver = '5.0.10' )
765
765
residuals = traits .Bool (
@@ -844,33 +844,31 @@ class Eddy(FSLCommand):
844
844
845
845
>>> from nipype.interfaces.fsl import Eddy
846
846
847
- Running eddy on an Nvidia GPU using cuda :
847
+ Running eddy on a CPU using OpenMP :
848
848
>>> eddy = Eddy()
849
849
>>> eddy.inputs.in_file = 'epi.nii'
850
850
>>> eddy.inputs.in_mask = 'epi_mask.nii'
851
851
>>> eddy.inputs.in_index = 'epi_index.txt'
852
852
>>> eddy.inputs.in_acqp = 'epi_acqp.txt'
853
853
>>> eddy.inputs.in_bvec = 'bvecs.scheme'
854
854
>>> 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 \
858
857
--acqp=epi_acqp.txt --bvals=bvals.scheme --bvecs=bvecs.scheme \
859
858
--imain=epi.nii --index=epi_index.txt --mask=epi_mask.nii \
860
859
--interp=spline --resamp=jac --niter=5 --nvoxhp=1000 \
861
860
--out=.../eddy_corrected --slm=none'
862
861
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 \
867
866
--acqp=epi_acqp.txt --bvals=bvals.scheme --bvecs=bvecs.scheme \
868
867
--imain=epi.nii --index=epi_index.txt --mask=epi_mask.nii \
869
868
--interp=spline --resamp=jac --niter=5 --nvoxhp=1000 \
870
869
--out=.../eddy_corrected --slm=none'
871
870
872
871
Running eddy with slice-to-volume motion correction:
873
- >>> eddy.inputs.use_cuda = True
874
872
>>> eddy.inputs.mporder = 6
875
873
>>> eddy.inputs.slice2vol_niter = 5
876
874
>>> eddy.inputs.slice2vol_lambda = 1
0 commit comments