From 397b5459040570323dd62cb4e5f3072d1c151e2d Mon Sep 17 00:00:00 2001 From: miykael Date: Tue, 15 Aug 2017 10:20:41 +0200 Subject: [PATCH] FIX: updates input spec to allow 4D images --- nipype/interfaces/ants/legacy.py | 4 ++-- nipype/interfaces/ants/segmentation.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nipype/interfaces/ants/legacy.py b/nipype/interfaces/ants/legacy.py index 3019f27c22..f545f3ed08 100644 --- a/nipype/interfaces/ants/legacy.py +++ b/nipype/interfaces/ants/legacy.py @@ -129,8 +129,8 @@ class GenWarpFields(antsIntroduction): class buildtemplateparallelInputSpec(ANTSCommandInputSpec): - dimension = traits.Enum(3, 2, argstr='-d %d', usedefault=True, - desc='image dimension (2 or 3)', position=1) + dimension = traits.Enum(3, 2, 4, argstr='-d %d', usedefault=True, + desc='image dimension (2, 3 or 4)', position=1) out_prefix = traits.Str('antsTMPL_', argstr='-o %s', usedefault=True, desc=('Prefix that is prepended to all output ' 'files (default = antsTMPL_)')) diff --git a/nipype/interfaces/ants/segmentation.py b/nipype/interfaces/ants/segmentation.py index aff6f2c6c0..042303227a 100644 --- a/nipype/interfaces/ants/segmentation.py +++ b/nipype/interfaces/ants/segmentation.py @@ -238,9 +238,9 @@ def _list_outputs(self): class N4BiasFieldCorrectionInputSpec(ANTSCommandInputSpec): - dimension = traits.Enum(3, 2, argstr='-d %d', + dimension = traits.Enum(3, 2, 4, argstr='-d %d', usedefault=True, - desc='image dimension (2 or 3)') + desc='image dimension (2, 3 or 4)') input_image = File(argstr='--input-image %s', mandatory=True, desc=('image to apply transformation to (generally a ' 'coregistered functional)'))