@@ -1503,11 +1503,11 @@ class MNIBiasCorrectionInputSpec(FSTraitedSpec):
1503
1503
# mandatory
1504
1504
in_file = File (exists = True , mandatory = True , argstr = "--i %s" ,
1505
1505
desc = "input volume. Input can be any format accepted by mri_convert." )
1506
+ # optional
1506
1507
out_file = File (argstr = "--o %s" , name_source = ['in_file' ],
1507
1508
name_template = '%s_output' , hash_files = False , keep_extension = True ,
1508
1509
desc = "output volume. Output can be any format accepted by mri_convert. " +
1509
1510
"If the output format is COR, then the directory must exist." )
1510
- # optional
1511
1511
iterations = traits .Int (4 , argstr = "--n %d" ,
1512
1512
desc = "Number of iterations to run nu_correct. Default is 4. This is the number of times " +
1513
1513
"that nu_correct is repeated (ie, using the output from the previous run as the input for " +
@@ -1528,7 +1528,7 @@ class MNIBiasCorrectionInputSpec(FSTraitedSpec):
1528
1528
desc = "Shrink parameter for finer sampling (default is 4)" )
1529
1529
1530
1530
class MNIBiasCorrectionOutputSpec (TraitedSpec ):
1531
- out_file = File (desc = "output volume" )
1531
+ out_file = File (exists = True , desc = "output volume" )
1532
1532
1533
1533
1534
1534
class MNIBiasCorrection (FSCommand ):
@@ -1563,11 +1563,6 @@ class MNIBiasCorrection(FSCommand):
1563
1563
input_spec = MNIBiasCorrectionInputSpec
1564
1564
output_spec = MNIBiasCorrectionOutputSpec
1565
1565
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
-
1571
1566
1572
1567
class WatershedSkullStripInputSpec (FSTraitedSpec ):
1573
1568
# required
0 commit comments