-
Notifications
You must be signed in to change notification settings - Fork 532
FIX: Remove nonfunctional ANTs registration flag #999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5b234bb
Update registration.py
JDWarner 5c803ba
FIX: Remove test for unused ANTs registration flag
JDWarner 46f3249
DOC: Fix doctest strings, removing unused flag.
060d4fe
Merge branch 'master' into patch-1
03c25c5
TST: Run `make spec` and include changed auto-tests
cd328a5
fix: remove extra comments
nicholsn 788e366
Merge pull request #1 from nicholsn/fix/ants-flag
JDWarner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
nipype/interfaces/ants/tests/test_auto_ConvertScalarImageToRGB.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from nipype.testing import assert_equal | ||
from nipype.interfaces.ants.visualization import ConvertScalarImageToRGB | ||
|
||
def test_ConvertScalarImageToRGB_inputs(): | ||
input_map = dict(args=dict(argstr='%s', | ||
), | ||
colormap=dict(argstr='%s', | ||
mandatory=True, | ||
position=4, | ||
usedefault=True, | ||
), | ||
custom_color_map_file=dict(argstr='%s', | ||
position=5, | ||
usedefault=True, | ||
), | ||
dimension=dict(argstr='%d', | ||
mandatory=True, | ||
position=0, | ||
usedefault=True, | ||
), | ||
environ=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
ignore_exception=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
input_image=dict(argstr='%s', | ||
mandatory=True, | ||
position=1, | ||
), | ||
mask_image=dict(argstr='%s', | ||
position=3, | ||
usedefault=True, | ||
), | ||
maximum_RGB_output=dict(argstr='%d', | ||
position=9, | ||
usedefault=True, | ||
), | ||
maximum_input=dict(argstr='%d', | ||
mandatory=True, | ||
position=7, | ||
), | ||
minimum_RGB_output=dict(argstr='%d', | ||
position=8, | ||
usedefault=True, | ||
), | ||
minimum_input=dict(argstr='%d', | ||
mandatory=True, | ||
position=6, | ||
), | ||
num_threads=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
output_image=dict(argstr='%s', | ||
position=2, | ||
usedefault=True, | ||
), | ||
terminal_output=dict(mandatory=True, | ||
nohash=True, | ||
), | ||
) | ||
inputs = ConvertScalarImageToRGB.input_spec() | ||
|
||
for key, metadata in input_map.items(): | ||
for metakey, value in metadata.items(): | ||
yield assert_equal, getattr(inputs.traits()[key], metakey), value | ||
|
||
def test_ConvertScalarImageToRGB_outputs(): | ||
output_map = dict(output_image=dict(), | ||
) | ||
outputs = ConvertScalarImageToRGB.output_spec() | ||
|
||
for key, metadata in output_map.items(): | ||
for metakey, value in metadata.items(): | ||
yield assert_equal, getattr(outputs.traits()[key], metakey), value | ||
|
60 changes: 60 additions & 0 deletions
60
nipype/interfaces/ants/tests/test_auto_CreateTiledMosaic.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from nipype.testing import assert_equal | ||
from nipype.interfaces.ants.visualization import CreateTiledMosaic | ||
|
||
def test_CreateTiledMosaic_inputs(): | ||
input_map = dict(alpha_value=dict(argstr='-a %.2f', | ||
), | ||
args=dict(argstr='%s', | ||
), | ||
direction=dict(argstr='-d %d', | ||
), | ||
environ=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
flip_slice=dict(argstr='-f %s', | ||
), | ||
ignore_exception=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
input_image=dict(argstr='-i %s', | ||
mandatory=True, | ||
), | ||
mask_image=dict(argstr='-x %s', | ||
), | ||
num_threads=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
output_image=dict(argstr='-o %s', | ||
usedefault=True, | ||
), | ||
pad_or_crop=dict(argstr='-p %s', | ||
), | ||
permute_axes=dict(argstr='-g', | ||
), | ||
rgb_image=dict(argstr='-r %s', | ||
mandatory=True, | ||
), | ||
slices=dict(argstr='-s %s', | ||
), | ||
terminal_output=dict(mandatory=True, | ||
nohash=True, | ||
), | ||
tile_geometry=dict(argstr='-t %s', | ||
), | ||
) | ||
inputs = CreateTiledMosaic.input_spec() | ||
|
||
for key, metadata in input_map.items(): | ||
for metakey, value in metadata.items(): | ||
yield assert_equal, getattr(inputs.traits()[key], metakey), value | ||
|
||
def test_CreateTiledMosaic_outputs(): | ||
output_map = dict(output_image=dict(), | ||
) | ||
outputs = CreateTiledMosaic.output_spec() | ||
|
||
for key, metadata in output_map.items(): | ||
for metakey, value in metadata.items(): | ||
yield assert_equal, getattr(outputs.traits()[key], metakey), value | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these two lines should be deleted.