-
Notifications
You must be signed in to change notification settings - Fork 530
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 N4BiasFieldCorrection rescale_intensities bug #3139
Conversation
Hi @salma1601, EDIT: sorry, I hit send to fast - somehow I failed to read the issue you linked. |
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.
Okay, this looks like an effective way of fixing the bug. Have you run black on the code before committing?
@@ -335,7 +335,6 @@ class N4BiasFieldCorrectionInputSpec(ANTSCommandInputSpec): | |||
) | |||
rescale_intensities = traits.Bool( | |||
False, |
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.
There was a move a while back to either remove defaults if unused, or set usedefault=True
if the default was specified. In this case, if we're removing usedefault
, we should also remove the default.
False, |
@satra I saw that. Is your preference to solve the more general problem instead of this short-term solution, or in addition? |
the short term solution makes an interface inputs change for ants versions greater than ps. i think we should discuss the more general solution in a more general discussion about how to version inputs and package versions. as the interfaces start evolving a bit, we will be left with what dependencies they support. this is similar in concept to any library api (e.g., numpy), but thus far we have stayed out of it by doing minimal pieces. as we start moving interfaces to their own packages for nipype 2, it may help to discuss the mechanics of this a bit. |
@salma1601 could you confirm this with ANTs devs?
👍 |
Is there consensus on whether a short-term fix is possible, or only the long-term approach discussed in #3138 (comment)? |
Just checking back in on this in the run-up to another release. Apologies for the short notice... |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3139 +/- ##
==========================================
+ Coverage 63.15% 67.62% +4.47%
==========================================
Files 308 299 -9
Lines 40825 39480 -1345
Branches 5656 5220 -436
==========================================
+ Hits 25781 26698 +917
+ Misses 14031 12070 -1961
+ Partials 1013 712 -301
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Summary
Addresses #3138 in the short term.
List of changes proposed in this PR (pull-request)
removed
use_default=True
forrescale_intensities
inputAcknowledgment