From 50be1a4acd53ee56bbeef93d038b497a62db334a Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Tue, 5 Dec 2023 10:37:57 -0500 Subject: [PATCH 1/2] Add GenericLabel to ANTS ApplyTransforms. --- nipype/interfaces/ants/resampling.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nipype/interfaces/ants/resampling.py b/nipype/interfaces/ants/resampling.py index 82a9e7a214..1b3e172756 100644 --- a/nipype/interfaces/ants/resampling.py +++ b/nipype/interfaces/ants/resampling.py @@ -349,6 +349,7 @@ class ApplyTransformsInputSpec(ANTSCommandInputSpec): "MultiLabel", "Gaussian", "BSpline", + "GenericLabel", argstr="%s", usedefault=True, ) @@ -497,6 +498,7 @@ def _format_arg(self, opt, spec, val): "BSpline", "MultiLabel", "Gaussian", + "GenericLabel", ] and isdefined(self.inputs.interpolation_parameters): return "--interpolation {}[ {} ]".format( self.inputs.interpolation, From 0114009b7b946844515997bffef2ab5fad965b35 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Tue, 5 Dec 2023 15:51:49 -0500 Subject: [PATCH 2/2] Address @effigies' review. --- nipype/interfaces/ants/resampling.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nipype/interfaces/ants/resampling.py b/nipype/interfaces/ants/resampling.py index 1b3e172756..3a6ba2c724 100644 --- a/nipype/interfaces/ants/resampling.py +++ b/nipype/interfaces/ants/resampling.py @@ -358,6 +358,7 @@ class ApplyTransformsInputSpec(ANTSCommandInputSpec): traits.Tuple( traits.Float(), traits.Float() # Gaussian/MultiLabel (sigma, alpha) ), + traits.Tuple(traits.Str()), # GenericLabel ) transforms = InputMultiObject( traits.Either(File(exists=True), "identity"),