-
Notifications
You must be signed in to change notification settings - Fork 240
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
Revert invertibility of RescaleIntensity
#1120
Revert invertibility of RescaleIntensity
#1120
Conversation
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.
The transform is in the current state (with the proposed changes) still invertible as it has the attribute self.revert_transform
(see transform.py
in L.403 with the method is_invertible
). As such, I would suggest to either overwrite is_invertible
as proposed in #1116 or removing the entire code part for invert_transform
. I would suggest the former as we do not loose any functionality nor do we make it more complicated - we just need to update the docstring (which has already been done in #1116 in my stashes but I am awaiting the response of all people of the issue). If that is choosen, the test needs to be adapted and needs to have two checks - one that it fails if in_min_max
is not provided and one where it actually is invertible and that the inverse is the same again.
You're right, this still needs some work. I'll let you choose on top of these changes or your stash. I didn't get this bit though:
Shouldn't we get rid of those tests? |
thanks @nicoloesch ! sound good to me |
Given the importance of the bug, I'm going to go ahead and merge this PRs. The code is still in the repo's history if we ever needed back. Thank you all for your contribution! |
* Add failing test * Revert invertibility of `RescaleIntensity` (#1120) * Make RescaleIntensity non-invertible again * Disable support to invert RescaleIntensity
Implement changes proposed in #1116.
@nicoloesch @romainVala @mueller-franzes