Skip to content

Commit fd1dda6

Browse files
committed
fix: outputspec
1 parent 5782634 commit fd1dda6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/freesurfer/preprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ class MNIBiasCorrectionInputSpec(FSTraitedSpec):
14681468
in_file = File(exists=True, mandatory=True, argstr="--i %s",
14691469
desc="input volume. Input can be any format accepted by mri_convert.")
14701470
# optional
1471-
out_file = File(argstr="--o %s", name_source=['in_file'], genfile=True,
1471+
out_file = File(argstr="--o %s", name_source=['in_file'],
14721472
name_template='%s_output', hash_files=False, keep_extension=True,
14731473
desc="output volume. Output can be any format accepted by mri_convert. " +
14741474
"If the output format is COR, then the directory must exist.")
@@ -1528,7 +1528,7 @@ class MNIBiasCorrection(FSCommand):
15281528
output_spec = MNIBiasCorrectionOutputSpec
15291529

15301530
def _list_outputs(self):
1531-
outputs = self._outputs().get()
1531+
outputs = self._output_spec().get()
15321532
outputs["out_file"] = os.path.abspath(self.inputs.out_file)
15331533
return outputs
15341534

0 commit comments

Comments
 (0)