Skip to content

Commit a07d9ea

Browse files
committed
Fix output
1 parent c5d55b3 commit a07d9ea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

nipype/interfaces/afni/utils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,8 @@ class ConvertDsetInputSpec(CommandLineInputSpec):
748748
out_file = File(
749749
desc='output file for ConvertDset',
750750
argstr='-prefix %s',
751-
position=-1)
751+
position=-1,
752+
mandatory=True)
752753

753754
out_type = traits.Enum(
754755
('niml', 'niml_asc', 'niml_bi',
@@ -783,6 +784,11 @@ class ConvertDset(AFNICommandBase):
783784
input_spec = ConvertDsetInputSpec
784785
output_spec = AFNICommandOutputSpec
785786

787+
def _list_outputs(self):
788+
outputs = self.output_spec().get()
789+
outputs['out_file'] = op.abspath(self.inputs.out_file)
790+
return outputs
791+
786792

787793
class CopyInputSpec(AFNICommandInputSpec):
788794
in_file = File(

0 commit comments

Comments
 (0)