Skip to content

Commit dafe7ce

Browse files
committed
Added depracation information.
1 parent 748f61b commit dafe7ce

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

nipype/interfaces/freesurfer/model.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -780,9 +780,16 @@ class MS_LDAInputSpec(FSTraitedSpec):
780780
desc='pair of class labels to optimize')
781781
weight_file = traits.File(argstr='-weight %s', mandatory=True,
782782
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'])
783789
vol_synth_file = traits.File(exists=False, argstr='-synth %s',
784790
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'])
786793
label_file = traits.File(exists=True, argstr='-label %s',
787794
desc='filename of the label volume')
788795
mask_file = traits.File(exists=True, argstr='-mask %s',
@@ -829,7 +836,10 @@ class MS_LDA(FSCommand):
829836

830837
def _list_outputs(self):
831838
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)
833843
if not isdefined(self.inputs.use_weights) or self.inputs.use_weights is False:
834844
outputs['weight_file'] = os.path.abspath(self.inputs.weight_file)
835845
return outputs

0 commit comments

Comments
 (0)