Skip to content

Commit 9a0fda0

Browse files
authored
Merge pull request #3256 from nipy/fix/antsai-g-argument
FIX: Raise version error when using ``-g`` with ``antsAI`` < 2.3.0
2 parents 929de35 + 0df1dff commit 9a0fda0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

nipype/interfaces/ants/tests/test_auto_AI.py

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def test_AI_inputs():
5959
),
6060
search_grid=dict(
6161
argstr="-g %s",
62+
min_ver="2.3.0",
6263
),
6364
transform=dict(
6465
argstr="-t %s[%g]",

nipype/interfaces/ants/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ class AIInputSpec(ANTSCommandInputSpec):
394394
traits.Tuple(traits.Float, traits.Tuple(traits.Float, traits.Float)),
395395
argstr="-g %s",
396396
desc="Translation search grid in mm",
397+
min_ver="2.3.0",
397398
)
398399

399400
convergence = traits.Tuple(

0 commit comments

Comments
 (0)