@@ -99,6 +99,9 @@ def standard_image(img_name):
99
99
class AFNIBaseCommandInputSpec (CommandLineInputSpec ):
100
100
outputtype = traits .Enum ('AFNI' , Info .ftypes .keys (),
101
101
desc = 'AFNI output filetype' )
102
+
103
+ class AFNITraitedSpec (AFNIBaseCommandInputSpec ):
104
+ pass
102
105
103
106
104
107
class AFNIBaseCommand (CommandLine ):
@@ -108,11 +111,12 @@ class AFNIBaseCommand(CommandLine):
108
111
109
112
input_spec = AFNIBaseCommandInputSpec
110
113
_outputtype = None
114
+
111
115
112
116
def __init__ (self , ** inputs ):
113
117
super (AFNIBaseCommand , self ).__init__ (** inputs )
114
118
self .inputs .on_trait_change (self ._output_update , 'outputtype' )
115
-
119
+
116
120
if self ._outputtype is None :
117
121
self ._outputtype = Info .outputtype ()
118
122
@@ -190,9 +194,9 @@ class AFNICommandInputSpec(AFNIBaseCommandInputSpec):
190
194
out_file = File ("%s_afni" , desc = 'output image file name' ,
191
195
argstr = '-prefix %s' , xor = ['out_file' , 'prefix' , 'suffix' ], name_source = "in_file" , usedefault = True )
192
196
prefix = traits .Str (
193
- desc = 'output image prefix' , deprecated = 0.8 , new_name = "out_file" )
197
+ desc = 'output image prefix' , deprecated = ' 0.8' , new_name = "out_file" )
194
198
suffix = traits .Str (
195
- desc = 'output image suffix' , deprecated = 0.8 , new_name = "out_file" )
199
+ desc = 'output image suffix' , deprecated = ' 0.8' , new_name = "out_file" )
196
200
197
201
198
202
class AFNICommand (AFNIBaseCommand ):
0 commit comments