@@ -1476,11 +1476,11 @@ class MNIBiasCorrectionInputSpec(FSTraitedSpec):
1476
1476
# mandatory
1477
1477
in_file = File (exists = True , mandatory = True , argstr = "--i %s" ,
1478
1478
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 ,
1480
1481
name_template = '%s_output' , hash_files = False , keep_extension = True ,
1481
1482
desc = "output volume. Output can be any format accepted by mri_convert. " +
1482
1483
"If the output format is COR, then the directory must exist." )
1483
- # optional
1484
1484
iterations = traits .Int (4 , argstr = "--n %d" ,
1485
1485
desc = "Number of iterations to run nu_correct. Default is 4. This is the number of times " +
1486
1486
"that nu_correct is repeated (ie, using the output from the previous run as the input for " +
@@ -1519,7 +1519,6 @@ class MNIBiasCorrection(FSCommand):
1519
1519
>>> from nipype.interfaces.freesurfer import MNIBiasCorrection
1520
1520
>>> correct = MNIBiasCorrection()
1521
1521
>>> correct.inputs.in_file = "norm.mgz"
1522
- >>> correct.inputs.out_file = "norm_output.mgz"
1523
1522
>>> correct.inputs.iterations = 6
1524
1523
>>> correct.inputs.protocol_iterations = 1000
1525
1524
>>> correct.inputs.distance = 50
0 commit comments