@@ -1503,11 +1503,11 @@ class MNIBiasCorrectionInputSpec(FSTraitedSpec):
15031503 # mandatory
15041504 in_file = File (exists = True , mandatory = True , argstr = "--i %s" ,
15051505 desc = "input volume. Input can be any format accepted by mri_convert." )
1506+ # optional
15061507 out_file = File (argstr = "--o %s" , name_source = ['in_file' ],
15071508 name_template = '%s_output' , hash_files = False , keep_extension = True ,
15081509 desc = "output volume. Output can be any format accepted by mri_convert. " +
15091510 "If the output format is COR, then the directory must exist." )
1510- # optional
15111511 iterations = traits .Int (4 , argstr = "--n %d" ,
15121512 desc = "Number of iterations to run nu_correct. Default is 4. This is the number of times " +
15131513 "that nu_correct is repeated (ie, using the output from the previous run as the input for " +
@@ -1528,7 +1528,7 @@ class MNIBiasCorrectionInputSpec(FSTraitedSpec):
15281528 desc = "Shrink parameter for finer sampling (default is 4)" )
15291529
15301530class MNIBiasCorrectionOutputSpec (TraitedSpec ):
1531- out_file = File (desc = "output volume" )
1531+ out_file = File (exists = True , desc = "output volume" )
15321532
15331533
15341534class MNIBiasCorrection (FSCommand ):
@@ -1563,11 +1563,6 @@ class MNIBiasCorrection(FSCommand):
15631563 input_spec = MNIBiasCorrectionInputSpec
15641564 output_spec = MNIBiasCorrectionOutputSpec
15651565
1566- def _list_outputs (self ):
1567- outputs = self ._outputs ().get ()
1568- outputs ["out_file" ] = os .path .abspath (self .inputs .out_file )
1569- return outputs
1570-
15711566
15721567class WatershedSkullStripInputSpec (FSTraitedSpec ):
15731568 # required
0 commit comments