Skip to content

Commit 85e6f1d

Browse files
authored
Merge pull request #2151 from miykael/master
FIX: updates input spec to allow 4D images
2 parents 1dd4995 + 397b545 commit 85e6f1d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nipype/interfaces/ants/legacy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ class GenWarpFields(antsIntroduction):
129129

130130

131131
class buildtemplateparallelInputSpec(ANTSCommandInputSpec):
132-
dimension = traits.Enum(3, 2, argstr='-d %d', usedefault=True,
133-
desc='image dimension (2 or 3)', position=1)
132+
dimension = traits.Enum(3, 2, 4, argstr='-d %d', usedefault=True,
133+
desc='image dimension (2, 3 or 4)', position=1)
134134
out_prefix = traits.Str('antsTMPL_', argstr='-o %s', usedefault=True,
135135
desc=('Prefix that is prepended to all output '
136136
'files (default = antsTMPL_)'))

nipype/interfaces/ants/segmentation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ def _list_outputs(self):
238238

239239

240240
class N4BiasFieldCorrectionInputSpec(ANTSCommandInputSpec):
241-
dimension = traits.Enum(3, 2, argstr='-d %d',
241+
dimension = traits.Enum(3, 2, 4, argstr='-d %d',
242242
usedefault=True,
243-
desc='image dimension (2 or 3)')
243+
desc='image dimension (2, 3 or 4)')
244244
input_image = File(argstr='--input-image %s', mandatory=True,
245245
desc=('image to apply transformation to (generally a '
246246
'coregistered functional)'))

0 commit comments

Comments
 (0)