-
Notifications
You must be signed in to change notification settings - Fork 533
Fix: ANTs cleanup #1278
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
Fix: ANTs cleanup #1278
Conversation
…join functions with _format_xarray
…ine string formatting. Changed class names for antsBrainExtraction and antsCorticalThickness.
Added interpolation_parameters, float and verbose to ApplyTransforms and added use_random_seed and verbose to Atropos
@@ -7,11 +7,13 @@ | |||
from .registration import ANTS, Registration | |||
|
|||
# Resampling Programs | |||
from .resampling import ApplyTransforms, ApplyTransformsToPoints, WarpImageMultiTransform, WarpTimeSeriesImageMultiTransform | |||
from .resampling import ApplyTransforms, ApplyTransformsToPoints, WarpImageMultiTransform, \ |
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.
instead of using a \
we could use a tuple representation
(ApplyTransforms, ApplyTransformsToPoints, WarpImageMultiTransform,
WarpTimeSeriesImageMultiTransform)
LGTM |
Pushed changes to imports. Merge when ready. |
@@ -486,24 +491,26 @@ class antsCorticalThicknessOutputSpec(TraitedSpec): | |||
BrainVolumes = File(exists=True, desc='Brain volumes as text') | |||
|
|||
|
|||
class antsCorticalThickness(ANTSCommand): | |||
class CorticalThickness(ANTSCommand): |
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.
Isn't this breaking backwards compatibility?
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.
actually that's a good point. we can add a deprecation warning to the class:
class antsCorticalThickness(CorticalThickness):
DeprecationWarning('This class has been replaced by CorticalThickness and will be removed in version 0.13')
So the removal of "ants" from the class names would break backwards compatibility. What would be the process to go through this? It has been done in the AFNI interfaces before. |
@satra is right. It's the same scheme: nipype/nipype/algorithms/misc.py Line 1473 in 175a6de
|
Updated to include deprecated classes. |
@blakedewey - i just ran into the issue that the |
@hjmjohnson Do you know when this flag came up? |
Nvm. I found the commit and it was after 2.1.0 came out. I didn't realize they added a completely new option. I will remove the additions. |
…l wait for next release to add.
commit c37982901a1b8c2c51d1b4353b289a44547d63e2
|
@hjmjohnson - hoping there is an ants release soon :) |
@satra What constistutes a release? Do you just want a new version number presented? I could make a new release version easily so that we have something to identify in nipype. Do you want version set to 2.2.0.??? ANTs Version: 2.1.0.post407-g8a995 Hans |
essentially - the last release was 2.1.0 - if the API has changed it should be 3.0.0. see http://semver.org/ |
Cleanup of ANTs interfaces.
-- Various PEP8 and other style corrections. Cleanup of
_format_xarray
-- Finished the
TODO
items in ApplyTransforms.-- Added option for
use_random_seed
for Atropos-- Added options for
verbose
in ApplyTransforms/Atropos-- Added option for float computations in ApplyTransforms (
float
)