@@ -677,8 +677,8 @@ class EddyInputSpec(FSLCommandInputSpec):
677
677
desc = ('Final resampling method (jacobian/least '
678
678
'squares)' ))
679
679
680
- repol = traits .Bool (
681
- False , argstr = '--repol' , desc = 'Detect and replace outlier slices' )
680
+ repol = traits .Enum (
681
+ True , argstr = '--repol' , desc = 'Detect and replace outlier slices' )
682
682
outlier_nstd = traits .Int (
683
683
argstr = '--ol_nstd' ,
684
684
desc = 'Number of std off to qualify as outlier' ,
@@ -760,8 +760,8 @@ class EddyInputSpec(FSLCommandInputSpec):
760
760
xor = ['slice_order' ],
761
761
min_ver = '6.0.1' )
762
762
763
- estimate_move_by_susceptibility = traits .Bool (
764
- False ,
763
+ estimate_move_by_susceptibility = traits .Enum (
764
+ True ,
765
765
argstr = '--estimate_move_by_susceptibility' ,
766
766
desc = 'Estimate how susceptibility field changes with subject movement' ,
767
767
min_ver = '6.0.1' )
@@ -793,7 +793,7 @@ class EddyInputSpec(FSLCommandInputSpec):
793
793
'date are acquired on a set of b-value '
794
794
'shells' ))
795
795
796
- use_cuda = traits .Bool ( False , desc = 'Run eddy using cuda gpu' )
796
+ use_cuda = traits .Enum ( True , desc = 'Run eddy using cuda gpu' )
797
797
cnr_maps = traits .Bool (
798
798
False , desc = "Output CNR-Maps" , argstr = "--cnr_maps" , min_ver = "5.0.10"
799
799
)
@@ -886,33 +886,31 @@ class Eddy(FSLCommand):
886
886
887
887
>>> from nipype.interfaces.fsl import Eddy
888
888
889
- Running eddy on an Nvidia GPU using cuda :
889
+ Running eddy on a CPU using OpenMP :
890
890
>>> eddy = Eddy()
891
891
>>> eddy.inputs.in_file = 'epi.nii'
892
892
>>> eddy.inputs.in_mask = 'epi_mask.nii'
893
893
>>> eddy.inputs.in_index = 'epi_index.txt'
894
894
>>> eddy.inputs.in_acqp = 'epi_acqp.txt'
895
895
>>> eddy.inputs.in_bvec = 'bvecs.scheme'
896
896
>>> eddy.inputs.in_bval = 'bvals.scheme'
897
- >>> eddy.inputs.use_cuda = True
898
- >>> eddy.cmdline # doctest: +ELLIPSIS
899
- 'eddy_cuda --flm=quadratic --ff=10.0 \
897
+ >>> eddy.cmdline # doctest: +ELLIPSIS
898
+ 'eddy_openmp --flm=quadratic --ff=10.0 \
900
899
--acqp=epi_acqp.txt --bvals=bvals.scheme --bvecs=bvecs.scheme \
901
900
--imain=epi.nii --index=epi_index.txt --mask=epi_mask.nii \
902
901
--interp=spline --resamp=jac --niter=5 --nvoxhp=1000 \
903
902
--out=.../eddy_corrected --slm=none'
904
903
905
- Running eddy on a CPU using OpenMP :
906
- >>> eddy.inputs.use_cuda = False
907
- >>> eddy.cmdline # doctest: +ELLIPSIS
908
- 'eddy_openmp --flm=quadratic --ff=10.0 \
904
+ Running eddy on an Nvidia GPU using cuda :
905
+ >>> eddy.inputs.use_cuda = True
906
+ >>> eddy.cmdline # doctest: +ELLIPSIS
907
+ 'eddy_cuda --flm=quadratic --ff=10.0 \
909
908
--acqp=epi_acqp.txt --bvals=bvals.scheme --bvecs=bvecs.scheme \
910
909
--imain=epi.nii --index=epi_index.txt --mask=epi_mask.nii \
911
910
--interp=spline --resamp=jac --niter=5 --nvoxhp=1000 \
912
911
--out=.../eddy_corrected --slm=none'
913
912
914
913
Running eddy with slice-to-volume motion correction:
915
- >>> eddy.inputs.use_cuda = True
916
914
>>> eddy.inputs.mporder = 6
917
915
>>> eddy.inputs.slice2vol_niter = 5
918
916
>>> eddy.inputs.slice2vol_lambda = 1
0 commit comments