Skip to content

Commit 5ef9fe4

Browse files
authored
Merge pull request #3617 from tsalo/add-genericlabel
[ENH] Add GenericLabel to ANTS ApplyTransforms.
2 parents b066807 + 0114009 commit 5ef9fe4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: nipype/interfaces/ants/resampling.py

+3
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ class ApplyTransformsInputSpec(ANTSCommandInputSpec):
349349
"MultiLabel",
350350
"Gaussian",
351351
"BSpline",
352+
"GenericLabel",
352353
argstr="%s",
353354
usedefault=True,
354355
)
@@ -357,6 +358,7 @@ class ApplyTransformsInputSpec(ANTSCommandInputSpec):
357358
traits.Tuple(
358359
traits.Float(), traits.Float() # Gaussian/MultiLabel (sigma, alpha)
359360
),
361+
traits.Tuple(traits.Str()), # GenericLabel
360362
)
361363
transforms = InputMultiObject(
362364
traits.Either(File(exists=True), "identity"),
@@ -497,6 +499,7 @@ def _format_arg(self, opt, spec, val):
497499
"BSpline",
498500
"MultiLabel",
499501
"Gaussian",
502+
"GenericLabel",
500503
] and isdefined(self.inputs.interpolation_parameters):
501504
return "--interpolation {}[ {} ]".format(
502505
self.inputs.interpolation,

0 commit comments

Comments
 (0)