Skip to content

Commit 5782634

Browse files
committed
enh: genfile
1 parent aaecb34 commit 5782634

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nipype/interfaces/freesurfer/preprocess.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,11 +1467,11 @@ class MNIBiasCorrectionInputSpec(FSTraitedSpec):
14671467
# mandatory
14681468
in_file = File(exists=True, mandatory=True, argstr="--i %s",
14691469
desc="input volume. Input can be any format accepted by mri_convert.")
1470-
out_file = File(argstr="--o %s", mandatory=True, name_source=['in_file'],
1470+
# optional
1471+
out_file = File(argstr="--o %s", name_source=['in_file'], genfile=True,
14711472
name_template='%s_output', hash_files=False, keep_extension=True,
14721473
desc="output volume. Output can be any format accepted by mri_convert. " +
14731474
"If the output format is COR, then the directory must exist.")
1474-
# optional
14751475
iterations = traits.Int(4, argstr="--n %d",
14761476
desc="Number of iterations to run nu_correct. Default is 4. This is the number of times " +
14771477
"that nu_correct is repeated (ie, using the output from the previous run as the input for " +
@@ -1510,7 +1510,6 @@ class MNIBiasCorrection(FSCommand):
15101510
>>> from nipype.interfaces.freesurfer import MNIBiasCorrection
15111511
>>> correct = MNIBiasCorrection()
15121512
>>> correct.inputs.in_file = "norm.mgz"
1513-
>>> correct.inputs.out_file = "norm_output.mgz"
15141513
>>> correct.inputs.iterations = 6
15151514
>>> correct.inputs.protocol_iterations = 1000
15161515
>>> correct.inputs.distance = 50

0 commit comments

Comments
 (0)