Skip to content

Commit

Permalink
Merge pull request #3256 from nipy/fix/antsai-g-argument
Browse files Browse the repository at this point in the history
FIX: Raise version error when using ``-g`` with ``antsAI`` < 2.3.0
  • Loading branch information
effigies authored Sep 25, 2020
2 parents 929de35 + 0df1dff commit 9a0fda0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions nipype/interfaces/ants/tests/test_auto_AI.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def test_AI_inputs():
),
search_grid=dict(
argstr="-g %s",
min_ver="2.3.0",
),
transform=dict(
argstr="-t %s[%g]",
Expand Down
1 change: 1 addition & 0 deletions nipype/interfaces/ants/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ class AIInputSpec(ANTSCommandInputSpec):
traits.Tuple(traits.Float, traits.Tuple(traits.Float, traits.Float)),
argstr="-g %s",
desc="Translation search grid in mm",
min_ver="2.3.0",
)

convergence = traits.Tuple(
Expand Down

0 comments on commit 9a0fda0

Please sign in to comment.