@@ -780,9 +780,16 @@ class MS_LDAInputSpec(FSTraitedSpec):
780
780
desc = 'pair of class labels to optimize' )
781
781
weight_file = traits .File (argstr = '-weight %s' , mandatory = True ,
782
782
desc = 'filename for the LDA weights (input or output)' )
783
+ output_synth = traits .File (exists = False , argstr = '-synth %s' ,
784
+ mandatory = True ,
785
+ desc = 'filename for the synthesized output volume' ,
786
+ deprecated = '0.8' ,
787
+ new_name = 'vol_synth_file' ,
788
+ xor = ['vol_synth_file' , 'output_synth' ])
783
789
vol_synth_file = traits .File (exists = False , argstr = '-synth %s' ,
784
790
mandatory = True ,
785
- desc = 'filename for the synthesized output volume' )
791
+ desc = 'filename for the synthesized output volume' ,
792
+ xor = ['vol_synth_file' , 'output_synth' ])
786
793
label_file = traits .File (exists = True , argstr = '-label %s' ,
787
794
desc = 'filename of the label volume' )
788
795
mask_file = traits .File (exists = True , argstr = '-mask %s' ,
@@ -829,7 +836,10 @@ class MS_LDA(FSCommand):
829
836
830
837
def _list_outputs (self ):
831
838
outputs = self ._outputs ().get ()
832
- outputs ['vol_synth_file' ] = os .path .abspath (self .inputs .vol_synth_file )
839
+ if isdefined (self .inputs .output_synth ):
840
+ outputs ['vol_synth_file' ] = os .path .abspath (self .inputs .output_synth )
841
+ else :
842
+ outputs ['vol_synth_file' ] = os .path .abspath (self .inputs .vol_synth_file )
833
843
if not isdefined (self .inputs .use_weights ) or self .inputs .use_weights is False :
834
844
outputs ['weight_file' ] = os .path .abspath (self .inputs .weight_file )
835
845
return outputs
0 commit comments