23
23
class MRISPreprocInputSpec (FSTraitedSpec ):
24
24
out_file = File (argstr = '--out %s' , genfile = True ,
25
25
desc = 'output filename' )
26
- target = traits .Unicode (argstr = '--target %s' , mandatory = True ,
26
+ target = traits .Str (argstr = '--target %s' , mandatory = True ,
27
27
desc = 'target subject name' )
28
28
hemi = traits .Enum ('lh' , 'rh' , argstr = '--hemi %s' ,
29
29
mandatory = True ,
30
30
desc = 'hemisphere for source and target' )
31
- surf_measure = traits .Unicode (argstr = '--meas %s' ,
31
+ surf_measure = traits .Str (argstr = '--meas %s' ,
32
32
xor = ('surf_measure' , 'surf_measure_file' , 'surf_area' ),
33
33
desc = 'Use subject/surf/hemi.surf_measure as input' )
34
- surf_area = traits .Unicode (argstr = '--area %s' ,
34
+ surf_area = traits .Str (argstr = '--area %s' ,
35
35
xor = ('surf_measure' , 'surf_measure_file' , 'surf_area' ),
36
36
desc = 'Extract vertex area from subject/surf/hemi.surfname to use as input.' )
37
37
subjects = traits .List (argstr = '--s %s...' ,
@@ -46,8 +46,8 @@ class MRISPreprocInputSpec(FSTraitedSpec):
46
46
surf_measure_file = InputMultiPath (File (exists = True ), argstr = '--is %s...' ,
47
47
xor = ('surf_measure' , 'surf_measure_file' , 'surf_area' ),
48
48
desc = 'file alternative to surfmeas, still requires list of subjects' )
49
- source_format = traits .Unicode (argstr = '--srcfmt %s' , desc = 'source format' )
50
- surf_dir = traits .Unicode (argstr = '--surfdir %s' ,
49
+ source_format = traits .Str (argstr = '--srcfmt %s' , desc = 'source format' )
50
+ surf_dir = traits .Str (argstr = '--surfdir %s' ,
51
51
desc = 'alternative directory (instead of surf)' )
52
52
vol_measure_file = InputMultiPath (traits .Tuple (File (exists = True ),
53
53
File (exists = True )),
@@ -114,7 +114,7 @@ def _gen_filename(self, name):
114
114
115
115
116
116
class GLMFitInputSpec (FSTraitedSpec ):
117
- glm_dir = traits .Unicode (argstr = '--glmdir %s' , desc = 'save outputs to dir' ,
117
+ glm_dir = traits .Str (argstr = '--glmdir %s' , desc = 'save outputs to dir' ,
118
118
genfile = True )
119
119
in_file = File (desc = 'input 4D file' , argstr = '--y %s' , mandatory = True ,
120
120
copyfile = False )
@@ -190,12 +190,12 @@ class GLMFitInputSpec(FSTraitedSpec):
190
190
surf = traits .Bool (argstr = "--surf %s %s %s" ,
191
191
requires = ["subject_id" , "hemi" ],
192
192
desc = "analysis is on a surface mesh" )
193
- subject_id = traits .Unicode (desc = "subject id for surface geometry" )
193
+ subject_id = traits .Str (desc = "subject id for surface geometry" )
194
194
hemi = traits .Enum ("lh" , "rh" , desc = "surface hemisphere" )
195
- surf_geo = traits .Unicode ("white" , usedefault = True ,
195
+ surf_geo = traits .Str ("white" , usedefault = True ,
196
196
desc = "surface geometry name (e.g. white, pial)" )
197
197
simulation = traits .Tuple (traits .Enum ('perm' , 'mc-full' , 'mc-z' ),
198
- traits .Int (min = 1 ), traits .Float , traits .Unicode ,
198
+ traits .Int (min = 1 ), traits .Float , traits .Str ,
199
199
argstr = '--sim %s %d %f %s' ,
200
200
desc = 'nulltype nsim thresh csdbasename' )
201
201
sim_sign = traits .Enum ('abs' , 'pos' , 'neg' , argstr = '--sim-sign %s' ,
@@ -544,11 +544,11 @@ class SegStatsInputSpec(FSTraitedSpec):
544
544
_xor_inputs = ('segmentation_file' , 'annot' , 'surf_label' )
545
545
segmentation_file = File (exists = True , argstr = '--seg %s' , xor = _xor_inputs ,
546
546
mandatory = True , desc = 'segmentation volume path' )
547
- annot = traits .Tuple (traits .Unicode , traits .Enum ('lh' , 'rh' ), traits .Unicode ,
547
+ annot = traits .Tuple (traits .Str , traits .Enum ('lh' , 'rh' ), traits .Str ,
548
548
argstr = '--annot %s %s %s' , xor = _xor_inputs ,
549
549
mandatory = True ,
550
550
desc = 'subject hemi parc : use surface parcellation' )
551
- surf_label = traits .Tuple (traits .Unicode , traits .Enum ('lh' , 'rh' ), traits .Unicode ,
551
+ surf_label = traits .Tuple (traits .Str , traits .Enum ('lh' , 'rh' ), traits .Str ,
552
552
argstr = '--slabel %s %s %s' , xor = _xor_inputs ,
553
553
mandatory = True ,
554
554
desc = 'subject hemi label : use surface label' )
@@ -716,11 +716,11 @@ class Label2VolInputSpec(FSTraitedSpec):
716
716
argstr = '--proj %s %f %f %f' ,
717
717
requires = ('subject_id' , 'hemi' ),
718
718
desc = 'project along surface normal' )
719
- subject_id = traits .Unicode (argstr = '--subject %s' ,
719
+ subject_id = traits .Str (argstr = '--subject %s' ,
720
720
desc = 'subject id' )
721
721
hemi = traits .Enum ('lh' , 'rh' , argstr = '--hemi %s' ,
722
722
desc = 'hemisphere to use lh or rh' )
723
- surface = traits .Unicode (argstr = '--surf %s' ,
723
+ surface = traits .Str (argstr = '--surf %s' ,
724
724
desc = 'use surface instead of white' )
725
725
vol_label_file = File (argstr = '--o %s' , genfile = True ,
726
726
desc = 'output volume' )
0 commit comments