Skip to content

Commit f4b2ae6

Browse files
committed
modified boolean traits to type enumerator
1 parent a15f1d7 commit f4b2ae6

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

nipype/interfaces/fsl/epi.py

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,8 @@ class EddyInputSpec(FSLCommandInputSpec):
677677
desc=('Final resampling method (jacobian/least '
678678
'squares)'))
679679

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')
682682
outlier_nstd = traits.Int(
683683
argstr='--ol_nstd',
684684
desc='Number of std off to qualify as outlier',
@@ -760,8 +760,8 @@ class EddyInputSpec(FSLCommandInputSpec):
760760
xor=['slice_order'],
761761
min_ver='6.0.1')
762762

763-
estimate_move_by_susceptibility = traits.Bool(
764-
False,
763+
estimate_move_by_susceptibility = traits.Enum(
764+
True,
765765
argstr='--estimate_move_by_susceptibility',
766766
desc='Estimate how susceptibility field changes with subject movement',
767767
min_ver='6.0.1')
@@ -793,7 +793,7 @@ class EddyInputSpec(FSLCommandInputSpec):
793793
'date are acquired on a set of b-value '
794794
'shells'))
795795

796-
use_cuda = traits.Bool(False, desc='Run eddy using cuda gpu')
796+
use_cuda = traits.Enum(True, desc='Run eddy using cuda gpu')
797797
cnr_maps = traits.Bool(
798798
False, desc="Output CNR-Maps", argstr="--cnr_maps", min_ver="5.0.10"
799799
)
@@ -886,33 +886,31 @@ class Eddy(FSLCommand):
886886
887887
>>> from nipype.interfaces.fsl import Eddy
888888
889-
Running eddy on an Nvidia GPU using cuda:
889+
Running eddy on a CPU using OpenMP:
890890
>>> eddy = Eddy()
891891
>>> eddy.inputs.in_file = 'epi.nii'
892892
>>> eddy.inputs.in_mask = 'epi_mask.nii'
893893
>>> eddy.inputs.in_index = 'epi_index.txt'
894894
>>> eddy.inputs.in_acqp = 'epi_acqp.txt'
895895
>>> eddy.inputs.in_bvec = 'bvecs.scheme'
896896
>>> 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 \
900899
--acqp=epi_acqp.txt --bvals=bvals.scheme --bvecs=bvecs.scheme \
901900
--imain=epi.nii --index=epi_index.txt --mask=epi_mask.nii \
902901
--interp=spline --resamp=jac --niter=5 --nvoxhp=1000 \
903902
--out=.../eddy_corrected --slm=none'
904903
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 \
909908
--acqp=epi_acqp.txt --bvals=bvals.scheme --bvecs=bvecs.scheme \
910909
--imain=epi.nii --index=epi_index.txt --mask=epi_mask.nii \
911910
--interp=spline --resamp=jac --niter=5 --nvoxhp=1000 \
912911
--out=.../eddy_corrected --slm=none'
913912
914913
Running eddy with slice-to-volume motion correction:
915-
>>> eddy.inputs.use_cuda = True
916914
>>> eddy.inputs.mporder = 6
917915
>>> eddy.inputs.slice2vol_niter = 5
918916
>>> eddy.inputs.slice2vol_lambda = 1

0 commit comments

Comments
 (0)