13
13
Directory ,
14
14
TraitedSpec ,
15
15
traits ,
16
+ Tuple ,
16
17
isdefined ,
17
18
File ,
18
19
InputMultiObject ,
@@ -261,7 +262,7 @@ class BrickStatInputSpec(CommandLineInputSpec):
261
262
mean = traits .Bool (desc = "print the mean value in the dataset" , argstr = "-mean" )
262
263
sum = traits .Bool (desc = "print the sum of values in the dataset" , argstr = "-sum" )
263
264
var = traits .Bool (desc = "print the variance in the dataset" , argstr = "-var" )
264
- percentile = traits . Tuple (
265
+ percentile = Tuple (
265
266
traits .Float ,
266
267
traits .Float ,
267
268
traits .Float ,
@@ -330,7 +331,7 @@ def aggregate_outputs(self, runtime=None, needed_outputs=None):
330
331
331
332
class BucketInputSpec (AFNICommandInputSpec ):
332
333
in_file = traits .List (
333
- traits . Tuple (
334
+ Tuple (
334
335
(File (exists = True , copyfile = False ), traits .Str (argstr = "'%s'" )),
335
336
artstr = "%s%s" ,
336
337
),
@@ -590,7 +591,7 @@ class Cat(AFNICommand):
590
591
591
592
class CatMatvecInputSpec (AFNICommandInputSpec ):
592
593
in_file = traits .List (
593
- traits . Tuple (traits .Str (), traits .Str ()),
594
+ Tuple (traits .Str (), traits .Str ()),
594
595
desc = "list of tuples of mfiles and associated opkeys" ,
595
596
mandatory = True ,
596
597
argstr = "%s" ,
@@ -683,7 +684,7 @@ class CenterMassInputSpec(CommandLineInputSpec):
683
684
exists = True ,
684
685
)
685
686
automask = traits .Bool (desc = "Generate the mask automatically" , argstr = "-automask" )
686
- set_cm = traits . Tuple (
687
+ set_cm = Tuple (
687
688
(traits .Float (), traits .Float (), traits .Float ()),
688
689
desc = "After computing the center of mass, set the origin fields in "
689
690
"the header so that the center of mass will be at (x,y,z) in "
@@ -711,7 +712,7 @@ class CenterMassOutputSpec(TraitedSpec):
711
712
out_file = File (exists = True , desc = "output file" )
712
713
cm_file = File (desc = "file with the center of mass coordinates" )
713
714
cm = traits .List (
714
- traits . Tuple (traits .Float (), traits .Float (), traits .Float ()),
715
+ Tuple (traits .Float (), traits .Float (), traits .Float ()),
715
716
desc = "center of mass" ,
716
717
)
717
718
@@ -889,7 +890,7 @@ class DotInputSpec(AFNICommandInputSpec):
889
890
)
890
891
out_file = File (desc = "collect output to a file" , argstr = " |& tee %s" , position = - 1 )
891
892
mask = File (desc = "Use this dataset as a mask" , argstr = "-mask %s" )
892
- mrange = traits . Tuple (
893
+ mrange = Tuple (
893
894
(traits .Float (), traits .Float ()),
894
895
desc = "Means to further restrict the voxels from 'mset' so that"
895
896
"only those mask values within this range (inclusive) willbe used." ,
@@ -1214,7 +1215,7 @@ class FWHMxInputSpec(CommandLineInputSpec):
1214
1215
acf = traits .Either (
1215
1216
traits .Bool (),
1216
1217
File (),
1217
- traits . Tuple (File (exists = True ), traits .Float ()),
1218
+ Tuple (File (exists = True ), traits .Float ()),
1218
1219
default = False ,
1219
1220
usedefault = True ,
1220
1221
argstr = "-acf" ,
@@ -1227,13 +1228,13 @@ class FWHMxOutputSpec(TraitedSpec):
1227
1228
out_subbricks = File (exists = True , desc = "output file (subbricks)" )
1228
1229
out_detrend = File (desc = "output file, detrended" )
1229
1230
fwhm = traits .Either (
1230
- traits . Tuple (traits .Float (), traits .Float (), traits .Float ()),
1231
- traits . Tuple (traits .Float (), traits .Float (), traits .Float (), traits .Float ()),
1231
+ Tuple (traits .Float (), traits .Float (), traits .Float ()),
1232
+ Tuple (traits .Float (), traits .Float (), traits .Float (), traits .Float ()),
1232
1233
desc = "FWHM along each axis" ,
1233
1234
)
1234
1235
acf_param = traits .Either (
1235
- traits . Tuple (traits .Float (), traits .Float (), traits .Float ()),
1236
- traits . Tuple (traits .Float (), traits .Float (), traits .Float (), traits .Float ()),
1236
+ Tuple (traits .Float (), traits .Float (), traits .Float ()),
1237
+ Tuple (traits .Float (), traits .Float (), traits .Float (), traits .Float ()),
1237
1238
desc = "fitted ACF model parameters" ,
1238
1239
)
1239
1240
out_acf = File (exists = True , desc = "output acf file" )
@@ -1429,10 +1430,10 @@ class LocalBistatInputSpec(AFNICommandInputSpec):
1429
1430
desc = "Filename of the second image" ,
1430
1431
)
1431
1432
neighborhood = traits .Either (
1432
- traits . Tuple (traits .Enum ("SPHERE" , "RHDD" , "TOHD" ), traits .Float ()),
1433
- traits . Tuple (
1433
+ Tuple (traits .Enum ("SPHERE" , "RHDD" , "TOHD" ), traits .Float ()),
1434
+ Tuple (
1434
1435
traits .Enum ("RECT" ),
1435
- traits . Tuple (traits .Float (), traits .Float (), traits .Float ()),
1436
+ Tuple (traits .Float (), traits .Float (), traits .Float ()),
1436
1437
),
1437
1438
mandatory = True ,
1438
1439
desc = "The region around each voxel that will be extracted for "
@@ -1557,10 +1558,10 @@ class LocalstatInputSpec(AFNICommandInputSpec):
1557
1558
exists = True , mandatory = True , argstr = "%s" , position = - 1 , desc = "input dataset"
1558
1559
)
1559
1560
neighborhood = traits .Either (
1560
- traits . Tuple (traits .Enum ("SPHERE" , "RHDD" , "TOHD" ), traits .Float ()),
1561
- traits . Tuple (
1561
+ Tuple (traits .Enum ("SPHERE" , "RHDD" , "TOHD" ), traits .Float ()),
1562
+ Tuple (
1562
1563
traits .Enum ("RECT" ),
1563
- traits . Tuple (traits .Float (), traits .Float (), traits .Float ()),
1564
+ Tuple (traits .Float (), traits .Float (), traits .Float ()),
1564
1565
),
1565
1566
mandatory = True ,
1566
1567
desc = "The region around each voxel that will be extracted for "
@@ -1594,9 +1595,9 @@ class LocalstatInputSpec(AFNICommandInputSpec):
1594
1595
stat = InputMultiObject (
1595
1596
traits .Either (
1596
1597
traits .Enum (_stat_names ),
1597
- traits . Tuple (
1598
+ Tuple (
1598
1599
traits .Enum ("perc" ),
1599
- traits . Tuple (traits .Float , traits .Float , traits .Float ),
1600
+ Tuple (traits .Float , traits .Float , traits .Float ),
1600
1601
),
1601
1602
),
1602
1603
mandatory = True ,
@@ -1669,7 +1670,7 @@ class LocalstatInputSpec(AFNICommandInputSpec):
1669
1670
)
1670
1671
reduce_grid = traits .Either (
1671
1672
traits .Float ,
1672
- traits . Tuple (traits .Float , traits .Float , traits .Float ),
1673
+ Tuple (traits .Float , traits .Float , traits .Float ),
1673
1674
argstr = "-reduce_grid %s" ,
1674
1675
xor = ["reduce_restore_grid" , "reduce_max_vox" ],
1675
1676
desc = "Compute output on a grid that is reduced by the specified "
@@ -1683,7 +1684,7 @@ class LocalstatInputSpec(AFNICommandInputSpec):
1683
1684
)
1684
1685
reduce_restore_grid = traits .Either (
1685
1686
traits .Float ,
1686
- traits . Tuple (traits .Float , traits .Float , traits .Float ),
1687
+ Tuple (traits .Float , traits .Float , traits .Float ),
1687
1688
argstr = "-reduce_restore_grid %s" ,
1688
1689
xor = ["reduce_max_vox" , "reduce_grid" ],
1689
1690
desc = "Like reduce_grid, but also resample output back to input grid." ,
@@ -2127,7 +2128,7 @@ class NwarpApply(AFNICommandBase):
2127
2128
class NwarpCatInputSpec (AFNICommandInputSpec ):
2128
2129
in_files = traits .List (
2129
2130
traits .Either (
2130
- File (), traits . Tuple (traits .Enum ("IDENT" , "INV" , "SQRT" , "SQRTINV" ), File ())
2131
+ File (), Tuple (traits .Enum ("IDENT" , "INV" , "SQRT" , "SQRTINV" ), File ())
2131
2132
),
2132
2133
desc = "list of tuples of 3D warps and associated functions" ,
2133
2134
mandatory = True ,
@@ -2273,7 +2274,7 @@ class OneDToolPyInputSpec(AFNIPythonCommandInputSpec):
2273
2274
"file, and zeros are simply counted." ,
2274
2275
argstr = "-show_censor_count" ,
2275
2276
)
2276
- censor_motion = traits . Tuple (
2277
+ censor_motion = Tuple (
2277
2278
(traits .Float (), File ()),
2278
2279
desc = "Tuple of motion limit and outfile prefix. need to also set set_nruns -r set_run_lengths" ,
2279
2280
argstr = "-censor_motion %f %s" ,
@@ -2381,7 +2382,7 @@ class RefitInputSpec(CommandLineInputSpec):
2381
2382
desc = "Associates the dataset with a specific template type, e.g. "
2382
2383
"TLRC, MNI, ORIG" ,
2383
2384
)
2384
- atrcopy = traits . Tuple (
2385
+ atrcopy = Tuple (
2385
2386
File (exists = True ),
2386
2387
traits .Str (),
2387
2388
argstr = "-atrcopy %s %s" ,
@@ -2392,15 +2393,15 @@ class RefitInputSpec(CommandLineInputSpec):
2392
2393
"advanced users only. Do NOT use -atrcopy or -atrstring with "
2393
2394
"other modification options. See also -copyaux." ,
2394
2395
)
2395
- atrstring = traits . Tuple (
2396
+ atrstring = Tuple (
2396
2397
traits .Str (),
2397
2398
traits .Str (),
2398
2399
argstr = "-atrstring %s %s" ,
2399
2400
desc = "Copy the last given string into the dataset(s) being modified, "
2400
2401
"giving it the attribute name given by the last string."
2401
2402
"To be safe, the last string should be in quotes." ,
2402
2403
)
2403
- atrfloat = traits . Tuple (
2404
+ atrfloat = Tuple (
2404
2405
traits .Str (),
2405
2406
traits .Str (),
2406
2407
argstr = "-atrfloat %s %s" ,
@@ -2410,7 +2411,7 @@ class RefitInputSpec(CommandLineInputSpec):
2410
2411
"'1 0.2 0 0 -0.2 1 0 0 0 0 1 0' or "
2411
2412
"flipZ.1D or '1D:1,0.2,2@0,-0.2,1,2@0,2@0,1,0'" ,
2412
2413
)
2413
- atrint = traits . Tuple (
2414
+ atrint = Tuple (
2414
2415
traits .Str (),
2415
2416
traits .Str (),
2416
2417
argstr = "-atrint %s %s" ,
@@ -2524,7 +2525,7 @@ class ReHoInputSpec(CommandLineInputSpec):
2524
2525
2525
2526
but you can choose most any value.""" ,
2526
2527
)
2527
- ellipsoid = traits . Tuple (
2528
+ ellipsoid = Tuple (
2528
2529
traits .Float ,
2529
2530
traits .Float ,
2530
2531
traits .Float ,
@@ -2618,7 +2619,7 @@ class ResampleInputSpec(AFNICommandInputSpec):
2618
2619
'for "Nearest Neighbor", "Linear", "Cubic" and "Blocky"'
2619
2620
"interpolation, respectively. Default is NN." ,
2620
2621
)
2621
- voxel_size = traits . Tuple (
2622
+ voxel_size = Tuple (
2622
2623
* [traits .Float ()] * 3 ,
2623
2624
argstr = "-dxyz %f %f %f" ,
2624
2625
desc = "resample to new dx, dy and dz" ,
@@ -2711,7 +2712,7 @@ class TCat(AFNICommand):
2711
2712
2712
2713
class TCatSBInputSpec (AFNICommandInputSpec ):
2713
2714
in_files = traits .List (
2714
- traits . Tuple (File (exists = True ), Str ()),
2715
+ Tuple (File (exists = True ), Str ()),
2715
2716
desc = "List of tuples of file names and subbrick selectors as strings."
2716
2717
"Don't forget to protect the single quotes in the subbrick selector"
2717
2718
"so the contents are protected from the command line interpreter." ,
@@ -2933,7 +2934,7 @@ class UndumpInputSpec(AFNICommandInputSpec):
2933
2934
"then each input data line sets the value in only one voxel." ,
2934
2935
argstr = "-srad %f" ,
2935
2936
)
2936
- orient = traits . Tuple (
2937
+ orient = Tuple (
2937
2938
traits .Enum ("R" , "L" ),
2938
2939
traits .Enum ("A" , "P" ),
2939
2940
traits .Enum ("I" , "S" ),
@@ -3057,7 +3058,7 @@ class UnifizeInputSpec(AFNICommandInputSpec):
3057
3058
requires = ["no_duplo" , "t2" ],
3058
3059
xor = ["gm" ],
3059
3060
)
3060
- rbt = traits . Tuple (
3061
+ rbt = Tuple (
3061
3062
traits .Float (),
3062
3063
traits .Float (),
3063
3064
traits .Float (),
0 commit comments