Skip to content

Commit c62acee

Browse files
committed
Merge branch 'fix/mnibias' of github.com:mgxd/nipype into fix/mnibias
2 parents 5f040e9 + 5782634 commit c62acee

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
@@ -1476,11 +1476,11 @@ class MNIBiasCorrectionInputSpec(FSTraitedSpec):
14761476
# mandatory
14771477
in_file = File(exists=True, mandatory=True, argstr="--i %s",
14781478
desc="input volume. Input can be any format accepted by mri_convert.")
1479-
out_file = File(argstr="--o %s", mandatory=True, name_source=['in_file'],
1479+
# optional
1480+
out_file = File(argstr="--o %s", name_source=['in_file'], genfile=True,
14801481
name_template='%s_output', hash_files=False, keep_extension=True,
14811482
desc="output volume. Output can be any format accepted by mri_convert. " +
14821483
"If the output format is COR, then the directory must exist.")
1483-
# optional
14841484
iterations = traits.Int(4, argstr="--n %d",
14851485
desc="Number of iterations to run nu_correct. Default is 4. This is the number of times " +
14861486
"that nu_correct is repeated (ie, using the output from the previous run as the input for " +
@@ -1519,7 +1519,6 @@ class MNIBiasCorrection(FSCommand):
15191519
>>> from nipype.interfaces.freesurfer import MNIBiasCorrection
15201520
>>> correct = MNIBiasCorrection()
15211521
>>> correct.inputs.in_file = "norm.mgz"
1522-
>>> correct.inputs.out_file = "norm_output.mgz"
15231522
>>> correct.inputs.iterations = 6
15241523
>>> correct.inputs.protocol_iterations = 1000
15251524
>>> correct.inputs.distance = 50

0 commit comments

Comments
 (0)