@@ -1467,11 +1467,11 @@ class MNIBiasCorrectionInputSpec(FSTraitedSpec):
1467
1467
# mandatory
1468
1468
in_file = File (exists = True , mandatory = True , argstr = "--i %s" ,
1469
1469
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 ,
1471
1472
name_template = '%s_output' , hash_files = False , keep_extension = True ,
1472
1473
desc = "output volume. Output can be any format accepted by mri_convert. " +
1473
1474
"If the output format is COR, then the directory must exist." )
1474
- # optional
1475
1475
iterations = traits .Int (4 , argstr = "--n %d" ,
1476
1476
desc = "Number of iterations to run nu_correct. Default is 4. This is the number of times " +
1477
1477
"that nu_correct is repeated (ie, using the output from the previous run as the input for " +
@@ -1510,7 +1510,6 @@ class MNIBiasCorrection(FSCommand):
1510
1510
>>> from nipype.interfaces.freesurfer import MNIBiasCorrection
1511
1511
>>> correct = MNIBiasCorrection()
1512
1512
>>> correct.inputs.in_file = "norm.mgz"
1513
- >>> correct.inputs.out_file = "norm_output.mgz"
1514
1513
>>> correct.inputs.iterations = 6
1515
1514
>>> correct.inputs.protocol_iterations = 1000
1516
1515
>>> correct.inputs.distance = 50
0 commit comments