@@ -259,11 +259,7 @@ class affScalarVolInputSpec(CommandLineInputSpec):
259
259
xor = ['target' , 'translation' , 'euler' , 'deformation' ],
260
260
desc = 'transform to apply: specify an input transformation\
261
261
file; parameters input will be ignored' ,)
262
- '''interpolation = traits.Enum('trilinear', 'NN',
263
- usedefault=True, argstr="-interp %s",
264
- desc='trilinear or nearest neighbor\
265
- interpolation')'''
266
- interpolation = traits .Enum (0 , 1 ,
262
+ interpolation = traits .Enum ('trilinear' , 'NN' ,
267
263
usedefault = True , argstr = "-interp %s" ,
268
264
desc = 'trilinear or nearest neighbor\
269
265
interpolation' )
@@ -306,10 +302,10 @@ class affScalarVol(CommandLineDtitk):
306
302
output_spec = affScalarVolOutputSpec
307
303
_cmd = 'affineScalarVolume'
308
304
309
- ''' def _format_arg(self, name, spec, value):
305
+ def _format_arg (self , name , spec , value ):
310
306
if name == 'interpolation' :
311
307
value = {'trilinear' : 0 , 'NN' : 1 }[value ]
312
- super(affScalarVol, self)._format_arg(name, spec, value)'''
308
+ return super (affScalarVol , self )._format_arg (name , spec , value )
313
309
314
310
315
311
class diffeoSymTensor3DVolInputSpec (CommandLineInputSpec ):
@@ -336,12 +332,9 @@ class diffeoSymTensor3DVolInputSpec(CommandLineInputSpec):
336
332
argstr = "-vsize %g %g %g" , xor = ['target' ])
337
333
flip = traits .Tuple ((traits .Int (), traits .Int (), traits .Int ()),
338
334
exists = True , argstr = "-flip %d %d %d" )
339
- resampling_type = traits .Enum (1 , 0 ,
335
+ resampling_type = traits .Enum ('backward' , 'forward' ,
340
336
desc = 'use backward or forward resampling' ,
341
337
exists = True , argstr = "-type %s" )
342
- '''resampling_type = traits.Enum('backward', 'forward',
343
- desc='use backward or forward resampling',
344
- exists=True, argstr="-type %s")'''
345
338
346
339
347
340
class diffeoSymTensor3DVolOutputSpec (TraitedSpec ):
@@ -368,10 +361,10 @@ class diffeoSymTensor3DVol(CommandLineDtitk):
368
361
output_spec = diffeoSymTensor3DVolOutputSpec
369
362
_cmd = 'deformationSymTensor3DVolume'
370
363
371
- ''' def _format_arg(self, name, spec, value):
364
+ def _format_arg (self , name , spec , value ):
372
365
if name == 'resampling_type' :
373
366
value = {'forward' : 0 , 'backward' : 1 }[value ]
374
- super(diffeoSymTensor3DVol, self)._format_arg(name, spec, value)'''
367
+ return super (diffeoSymTensor3DVol , self )._format_arg (name , spec , value )
375
368
376
369
377
370
class diffeoScalarVolInputSpec (CommandLineInputSpec ):
@@ -390,17 +383,10 @@ class diffeoScalarVolInputSpec(CommandLineInputSpec):
390
383
argstr = "-vsize %g %g %g" , xor = ['target' ])
391
384
flip = traits .Tuple ((traits .Int (), traits .Int (), traits .Int ()),
392
385
exists = True , argstr = "-flip %d %d %d" )
393
- ''' resampling_type = traits.Enum('backward', 'forward',
386
+ resampling_type = traits .Enum ('backward' , 'forward' ,
394
387
desc = 'use backward or forward resampling' ,
395
388
exists = True , argstr = "-type %s" )
396
389
interpolation = traits .Enum ('trilinear' , 'NN' ,
397
- desc='trilinear, or nearest neighbor',
398
- exists=True, argstr="-interp %s",
399
- usedefault=True)'''
400
- resampling_type = traits .Enum (1 , 0 ,
401
- desc = 'use backward or forward resampling' ,
402
- exists = True , argstr = "-type %s" )
403
- interpolation = traits .Enum (0 , 1 ,
404
390
desc = 'trilinear, or nearest neighbor' ,
405
391
exists = True , argstr = "-interp %s" ,
406
392
usedefault = True )
@@ -430,10 +416,10 @@ class diffeoScalarVol(CommandLineDtitk):
430
416
output_spec = diffeoScalarVolOutputSpec
431
417
_cmd = 'deformationScalarVolume'
432
418
433
- ''' def _format_arg(self, name, spec, value):
419
+ def _format_arg (self , name , spec , value ):
434
420
if name == 'resampling_type' :
435
421
value = {'forward' : 0 , 'backward' : 1 }[value ]
436
422
super (diffeoScalarVol , self )._format_arg (name , spec , value )
437
423
if name == 'interpolation' :
438
424
value = {'trilinear' : 0 , 'NN' : 1 }[value ]
439
- super(diffeoScalarVol, self)._format_arg(name, spec, value)'''
425
+ return super (diffeoScalarVol , self )._format_arg (name , spec , value )
0 commit comments