@@ -374,8 +374,8 @@ class NormalizeInputSpec(SPMCommandInputSpec):
374374 desc = 'file to normalize to template' ,
375375 xor = ['parameter_file' ],
376376 mandatory = True , copyfile = True )
377- jobtype = traits .Enum ('estwrite' , 'est' , 'write' ,
378- desc = 'one of: est, write, estwrite estwrite ' )
377+ jobtype = traits .Enum ('estwrite' , 'est' , 'write' , usedefault = True ,
378+ desc = 'Estimate, Write or do both ' )
379379 apply_to_files = InputMultiPath (traits .Either (File (exists = True ),
380380 traits .List (File (exists = True ))),
381381 field = 'subj.resample' ,
@@ -527,11 +527,11 @@ class Normalize12InputSpec(SPMCommandInputSpec):
527527 copyfile = True )
528528 deformation_file = File (field = 'subj.def' , mandatory = True ,
529529 xor = ['image_to_align' , 'tpm' ],
530- desc = ('file y_*.nii containing 3 deformation fields' ,
530+ desc = ('file y_*.nii containing 3 deformation fields '
531531 'for the deformation in x, y and z dimension' ),
532532 copyfile = False )
533- jobtype = traits .Enum ('estwrite' , 'est' , 'write' ,
534- desc = 'one of: est, write, estwrite estwrite ' )
533+ jobtype = traits .Enum ('estwrite' , 'est' , 'write' , usedefault = True ,
534+ desc = 'Estimate, Write or do Both ' )
535535 bias_regularization = traits .Enum (0 , 0.00001 , 0.0001 , 0.001 , 0.01 , 0.1 , 1 ,
536536 10 , field = 'eoptions.biasreg' ,
537537 desc = 'no(0) - extremely heavy (10)' )
@@ -547,37 +547,37 @@ class Normalize12InputSpec(SPMCommandInputSpec):
547547 desc = 'mni, size, none' )
548548 warping_regularization = traits .List (traits .Float (), field = 'eoptions.reg' ,
549549 minlen = 5 , maxlen = 5 ,
550- desc = ('controls balance between' ,
550+ desc = ('controls balance between '
551551 'parameters and data' ))
552552 smoothness = traits .Float (field = 'eoptions.fwhm' ,
553- desc = ('value (in mm) to smooth the data before' ,
553+ desc = ('value (in mm) to smooth the data before '
554554 'normalization' ))
555555 sampling_distance = traits .Float (field = 'eoptions.samp' ,
556- desc = ('Sampling distance on data for' ,
556+ desc = ('Sampling distance on data for '
557557 'parameter estimation' ))
558558 write_bounding_box = traits .List (traits .List (traits .Float (),
559559 minlen = 3 , maxlen = 3 ),
560560 field = 'woptions.bb' , minlen = 2 , maxlen = 2 ,
561- desc = ('3x2-element list of lists representing' ,
561+ desc = ('3x2-element list of lists representing '
562562 'the bounding box (in mm) to be written' ))
563563 write_voxel_sizes = traits .List (traits .Float (), field = 'woptions.vox' ,
564564 minlen = 3 , maxlen = 3 ,
565- desc = ('3-element list representing the' ,
566- 'voxel sizes (in mm) of the written' ,
565+ desc = ('3-element list representing the '
566+ 'voxel sizes (in mm) of the written '
567567 'normalised images' ))
568568 write_interp = traits .Range (low = 0 , high = 7 , field = 'woptions.interp' ,
569569 desc = 'degree of b-spline used for interpolation' )
570570
571571
572572class Normalize12OutputSpec (TraitedSpec ):
573573 deformation_field = OutputMultiPath (File (exists = True ),
574- desc = ('NIfTI file containing 3 deformation' ,
575- 'fields for the deformation in' ,
574+ desc = ('NIfTI file containing 3 deformation '
575+ 'fields for the deformation in '
576576 'x, y and z dimension' ))
577577 normalized_image = OutputMultiPath (File (exists = True ),
578- desc = ('Normalized file that needed to' ,
578+ desc = ('Normalized file that needed to '
579579 'be aligned' ))
580- normalized_files = OutputMultiPath (File (exists = True ),
580+ normalized_files = OutputMultiPath (File (exists = True ),
581581 desc = 'Normalized other files' )
582582
583583
@@ -621,7 +621,7 @@ def _format_arg(self, opt, spec, val):
621621 raise ValueError ('%s must have 5 elements' % opt )
622622 return super (Normalize12 , self )._format_arg (opt , spec , val )
623623
624- def _parse_inputs (self ):
624+ def _parse_inputs (self , skip = () ):
625625 """validate spm normalize options if set to None ignore
626626 """
627627 einputs = super (Normalize12 , self )._parse_inputs (skip = ('jobtype' ,
0 commit comments