1313 fname_presuffix )
1414from ..base import (CommandLineInputSpec , CommandLine , TraitedSpec , traits ,
1515 isdefined , File , InputMultiPath , Undefined , Str ,
16- InputMultiObject )
16+ InputMultiObject , Either , Tuple )
1717
1818from .base import (AFNICommandBase , AFNICommand , AFNICommandInputSpec ,
1919 AFNICommandOutputSpec , AFNIPythonCommandInputSpec ,
@@ -54,7 +54,7 @@ class AlignEpiAnatPyInputSpec(AFNIPythonCommandInputSpec):
5454 mandatory = True ,
5555 exists = True ,
5656 copyfile = False )
57- epi_base = traits . Either (
57+ epi_base = Either (
5858 traits .Range (low = 0 ),
5959 traits .Enum ('mean' , 'median' , 'max' ),
6060 desc = 'the epi base used in alignment'
@@ -361,7 +361,7 @@ class AllineateInputSpec(AFNICommandInputSpec):
361361 desc = 'Set the weighting for each voxel in the base dataset; '
362362 'larger weights mean that voxel count more in the cost function. '
363363 'Must be defined on the same grid as the base dataset' )
364- weight = traits . Either (
364+ weight = Either (
365365 File (exists = True ),
366366 traits .Float (),
367367 argstr = '-weight %s' ,
@@ -2047,7 +2047,7 @@ class SegInputSpec(CommandLineInputSpec):
20472047 mandatory = True ,
20482048 exists = True ,
20492049 copyfile = True )
2050- mask = traits . Either (
2050+ mask = Either (
20512051 traits .Enum ('AUTO' ),
20522052 File (exists = True ),
20532053 desc = 'only non-zero voxels in mask are analyzed. mask can either be a '
@@ -2258,7 +2258,7 @@ class TCorrMapInputSpec(AFNICommandInputSpec):
22582258 mask = File (exists = True , argstr = '-mask %s' )
22592259 automask = traits .Bool (argstr = '-automask' )
22602260 polort = traits .Int (argstr = '-polort %d' )
2261- bandpass = traits . Tuple (
2261+ bandpass = Tuple (
22622262 (traits .Float (), traits .Float ()), argstr = '-bpass %f %f' )
22632263 regress_out_timeseries = File (exists = True , argstr = '-ort %s' )
22642264 blur_fwhm = traits .Float (argstr = '-Gblur %f' )
@@ -2591,11 +2591,11 @@ class TProjectInputSpec(AFNICommandInputSpec):
25912591 ++ That is, 'fset' contains a different nuisance time
25922592 series for each voxel (e.g., from AnatICOR).
25932593 ++ Multiple -dsort options are allowed.""" )
2594- bandpass = traits . Tuple (
2594+ bandpass = Tuple (
25952595 traits .Float , traits .Float ,
25962596 desc = """Remove all frequencies EXCEPT those in the range""" ,
25972597 argstr = '-bandpass %g %g' )
2598- stopband = traits . Tuple (
2598+ stopband = Tuple (
25992599 traits .Float , traits .Float ,
26002600 desc = """Remove all frequencies in the range""" ,
26012601 argstr = '-stopband %g %g' )
@@ -2693,7 +2693,7 @@ class TShiftInputSpec(AFNICommandInputSpec):
26932693 desc = 'different interpolation methods (see 3dTshift for details) '
26942694 'default = Fourier' ,
26952695 argstr = '-%s' )
2696- tpattern = traits . Either (
2696+ tpattern = Either (
26972697 traits .Enum ('alt+z' , 'altplus' , # Synonyms
26982698 'alt+z2' ,
26992699 'alt-z' , 'altminus' , # Synonyms
@@ -2704,7 +2704,7 @@ class TShiftInputSpec(AFNICommandInputSpec):
27042704 desc = 'use specified slice time pattern rather than one in header' ,
27052705 argstr = '-tpattern %s' ,
27062706 xor = ['slice_timing' ])
2707- slice_timing = traits . Either (
2707+ slice_timing = Either (
27082708 File (exists = True ),
27092709 traits .List (traits .Float ),
27102710 desc = 'time offsets from the volume acquisition onset for each slice' ,
@@ -2861,8 +2861,8 @@ class VolregInputSpec(AFNICommandInputSpec):
28612861 mandatory = True ,
28622862 exists = True ,
28632863 copyfile = False )
2864- in_weight_volume = traits . Either (
2865- traits . Tuple (File (exists = True ), traits .Int ),
2864+ in_weight_volume = Either (
2865+ Tuple (File (exists = True ), traits .Int ),
28662866 File (exists = True ),
28672867 desc = 'weights for each voxel specified by a file with an '
28682868 'optional volume number (defaults to 0)' ,
@@ -3234,8 +3234,8 @@ class QwarpInputSpec(AFNICommandInputSpec):
32343234 argstr = '-wball %s' ,
32353235 minlen = 5 ,
32363236 maxlen = 5 )
3237- traits . Tuple ((traits .Float (), traits .Float ()), argstr = '-bpass %f %f' )
3238- wmask = traits . Tuple (
3237+ Tuple ((traits .Float (), traits .Float ()), argstr = '-bpass %f %f' )
3238+ wmask = Tuple (
32393239 (File (exists = True ), traits .Float ()),
32403240 desc = '-wmask ws f'
32413241 'Similar to \' -wball\' , but here, you provide a dataset \' ws\' '
0 commit comments