13
13
fname_presuffix )
14
14
from ..base import (CommandLineInputSpec , CommandLine , TraitedSpec , traits ,
15
15
isdefined , File , InputMultiPath , Undefined , Str ,
16
- InputMultiObject )
16
+ InputMultiObject , Either , Tuple )
17
17
18
18
from .base import (AFNICommandBase , AFNICommand , AFNICommandInputSpec ,
19
19
AFNICommandOutputSpec , AFNIPythonCommandInputSpec ,
@@ -54,7 +54,7 @@ class AlignEpiAnatPyInputSpec(AFNIPythonCommandInputSpec):
54
54
mandatory = True ,
55
55
exists = True ,
56
56
copyfile = False )
57
- epi_base = traits . Either (
57
+ epi_base = Either (
58
58
traits .Range (low = 0 ),
59
59
traits .Enum ('mean' , 'median' , 'max' ),
60
60
desc = 'the epi base used in alignment'
@@ -361,7 +361,7 @@ class AllineateInputSpec(AFNICommandInputSpec):
361
361
desc = 'Set the weighting for each voxel in the base dataset; '
362
362
'larger weights mean that voxel count more in the cost function. '
363
363
'Must be defined on the same grid as the base dataset' )
364
- weight = traits . Either (
364
+ weight = Either (
365
365
File (exists = True ),
366
366
traits .Float (),
367
367
argstr = '-weight %s' ,
@@ -2047,7 +2047,7 @@ class SegInputSpec(CommandLineInputSpec):
2047
2047
mandatory = True ,
2048
2048
exists = True ,
2049
2049
copyfile = True )
2050
- mask = traits . Either (
2050
+ mask = Either (
2051
2051
traits .Enum ('AUTO' ),
2052
2052
File (exists = True ),
2053
2053
desc = 'only non-zero voxels in mask are analyzed. mask can either be a '
@@ -2258,7 +2258,7 @@ class TCorrMapInputSpec(AFNICommandInputSpec):
2258
2258
mask = File (exists = True , argstr = '-mask %s' )
2259
2259
automask = traits .Bool (argstr = '-automask' )
2260
2260
polort = traits .Int (argstr = '-polort %d' )
2261
- bandpass = traits . Tuple (
2261
+ bandpass = Tuple (
2262
2262
(traits .Float (), traits .Float ()), argstr = '-bpass %f %f' )
2263
2263
regress_out_timeseries = File (exists = True , argstr = '-ort %s' )
2264
2264
blur_fwhm = traits .Float (argstr = '-Gblur %f' )
@@ -2591,11 +2591,11 @@ class TProjectInputSpec(AFNICommandInputSpec):
2591
2591
++ That is, 'fset' contains a different nuisance time
2592
2592
series for each voxel (e.g., from AnatICOR).
2593
2593
++ Multiple -dsort options are allowed.""" )
2594
- bandpass = traits . Tuple (
2594
+ bandpass = Tuple (
2595
2595
traits .Float , traits .Float ,
2596
2596
desc = """Remove all frequencies EXCEPT those in the range""" ,
2597
2597
argstr = '-bandpass %g %g' )
2598
- stopband = traits . Tuple (
2598
+ stopband = Tuple (
2599
2599
traits .Float , traits .Float ,
2600
2600
desc = """Remove all frequencies in the range""" ,
2601
2601
argstr = '-stopband %g %g' )
@@ -2693,7 +2693,7 @@ class TShiftInputSpec(AFNICommandInputSpec):
2693
2693
desc = 'different interpolation methods (see 3dTshift for details) '
2694
2694
'default = Fourier' ,
2695
2695
argstr = '-%s' )
2696
- tpattern = traits . Either (
2696
+ tpattern = Either (
2697
2697
traits .Enum ('alt+z' , 'altplus' , # Synonyms
2698
2698
'alt+z2' ,
2699
2699
'alt-z' , 'altminus' , # Synonyms
@@ -2704,7 +2704,7 @@ class TShiftInputSpec(AFNICommandInputSpec):
2704
2704
desc = 'use specified slice time pattern rather than one in header' ,
2705
2705
argstr = '-tpattern %s' ,
2706
2706
xor = ['slice_timing' ])
2707
- slice_timing = traits . Either (
2707
+ slice_timing = Either (
2708
2708
File (exists = True ),
2709
2709
traits .List (traits .Float ),
2710
2710
desc = 'time offsets from the volume acquisition onset for each slice' ,
@@ -2861,8 +2861,8 @@ class VolregInputSpec(AFNICommandInputSpec):
2861
2861
mandatory = True ,
2862
2862
exists = True ,
2863
2863
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 ),
2866
2866
File (exists = True ),
2867
2867
desc = 'weights for each voxel specified by a file with an '
2868
2868
'optional volume number (defaults to 0)' ,
@@ -3234,8 +3234,8 @@ class QwarpInputSpec(AFNICommandInputSpec):
3234
3234
argstr = '-wball %s' ,
3235
3235
minlen = 5 ,
3236
3236
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 (
3239
3239
(File (exists = True ), traits .Float ()),
3240
3240
desc = '-wmask ws f'
3241
3241
'Similar to \' -wball\' , but here, you provide a dataset \' ws\' '
0 commit comments