-
Notifications
You must be signed in to change notification settings - Fork 532
[ENH] Support for multiple initial-moving-transforms for ants.Registration and ComposeMultiTransforms #2187
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 all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
054e9bb
Added ComposeMultiTransform to ants.utils
Gilles86 8def391
Test
Gilles86 aba1a5e
Various bugfixes
Gilles86 dfc3bcd
Fake test data for ComposeMultiTransforms
Gilles86 ea351d1
Make antsRegistration cmdline consistent with documentation
Gilles86 998a7c1
Small typo in documentation
Gilles86 1dea8c2
Merge remote-tracking branch 'upstream/master' into ants_compose_mult…
Gilles86 62fea30
Added spaces inside brackets for --initial-moving-transform option in…
Gilles86 f2f57ad
Proper --initial_moving_transform formatting
Gilles86 cd6312b
Merge branch 'ants_compose_multitransform' of github.com:Gilles86/nip…
Gilles86 c20e1d9
Fixed doctests
Gilles86 3ea71cc
Updated documentation
Gilles86 4930295
Fixed link in ants.Registration documentation
Gilles86 49677ec
autopep8 and trailing whitespace is cleaned-up
Gilles86 4dc3923
Incorporated @oesteban's comments
Gilles86 addee02
PEP8-ing that utils.py
Gilles86 cf3fc98
Auto tests
Gilles86 8c08f13
input_spec and output_spec-definition seem necessary for ANTSCommand
Gilles86 12f76ce
One-line description of ComposeMultiTransform
Gilles86 5d8471f
Forgot to end
Gilles86 8bffd7a
various fixes
oesteban 1045d2a
update specs
oesteban 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
Large diffs are not rendered by default.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
nipype/interfaces/ants/tests/test_auto_ComposeMultiTransform.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,53 @@ | ||
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT | ||
from __future__ import unicode_literals | ||
from ..utils import ComposeMultiTransform | ||
|
||
|
||
def test_ComposeMultiTransform_inputs(): | ||
input_map = dict(args=dict(argstr='%s', | ||
), | ||
dimension=dict(argstr='%d', | ||
position=0, | ||
usedefault=True, | ||
), | ||
environ=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
ignore_exception=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
num_threads=dict(nohash=True, | ||
usedefault=True, | ||
), | ||
output_transform=dict(argstr='%s', | ||
keep_ext=True, | ||
name_source=['transforms'], | ||
name_template='%s_composed', | ||
position=1, | ||
), | ||
reference_image=dict(argstr='%s', | ||
position=2, | ||
), | ||
terminal_output=dict(deprecated='1.0.0', | ||
nohash=True, | ||
), | ||
transforms=dict(argstr='%s', | ||
mandatory=True, | ||
position=3, | ||
), | ||
) | ||
inputs = ComposeMultiTransform.input_spec() | ||
|
||
for key, metadata in list(input_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
assert getattr(inputs.traits()[key], metakey) == value | ||
|
||
|
||
def test_ComposeMultiTransform_outputs(): | ||
output_map = dict(output_transform=dict(), | ||
) | ||
outputs = ComposeMultiTransform.output_spec() | ||
|
||
for key, metadata in list(output_map.items()): | ||
for metakey, value in list(metadata.items()): | ||
assert 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
Empty file.
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.
Please add a one-line description of what ComposeMultiTransform does.