From 7362004415d697d380d9c9078910efb168386403 Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Mon, 4 Oct 2021 17:09:02 +0200 Subject: [PATCH] fix: ``antsRegistration`` allows the ``restrict_deformation`` to be float --- nipype/interfaces/ants/registration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nipype/interfaces/ants/registration.py b/nipype/interfaces/ants/registration.py index 87c2848be3..b9bd38f2df 100644 --- a/nipype/interfaces/ants/registration.py +++ b/nipype/interfaces/ants/registration.py @@ -526,7 +526,7 @@ class RegistrationInputSpec(ANTSCommandInputSpec): ) ) restrict_deformation = traits.List( - traits.List(traits.Enum(0, 1)), + traits.List(traits.Range(low=0.0, high=1.0)), desc=( "This option allows the user to restrict the optimization of " "the displacement field, translation, rigid or affine transform "