Skip to content

Commit 127f2fc

Browse files
committed
Change N4 dimension input to use short tag
Using short tag will allow use of newest ANTs releases as well as provide backward compatibility as only the long tag changed. Also removed conflicting `requires` tags.
1 parent 8b83ea1 commit 127f2fc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nipype/interfaces/ants/segmentation.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def _list_outputs(self):
223223

224224

225225
class N4BiasFieldCorrectionInputSpec(ANTSCommandInputSpec):
226-
dimension = traits.Enum(3, 2, argstr='--image-dimension %d',
226+
dimension = traits.Enum(3, 2, argstr='-d %d',
227227
usedefault=True,
228228
desc='image dimension (2 or 3)')
229229
input_image = File(argstr='--input-image %s', mandatory=True,
@@ -237,8 +237,7 @@ class N4BiasFieldCorrectionInputSpec(ANTSCommandInputSpec):
237237
bspline_fitting_distance = traits.Float(argstr="--bspline-fitting %s")
238238
bspline_order = traits.Int(requires=['bspline_fitting_distance'])
239239
shrink_factor = traits.Int(argstr="--shrink-factor %d")
240-
n_iterations = traits.List(traits.Int(), argstr="--convergence %s",
241-
requires=['convergence_threshold'])
240+
n_iterations = traits.List(traits.Int(), argstr="--convergence %s")
242241
convergence_threshold = traits.Float(requires=['n_iterations'])
243242
save_bias = traits.Bool(False, mandatory=True, usedefault=True,
244243
desc=('True if the estimated bias should be saved'

0 commit comments

Comments
 (0)