-
Notifications
You must be signed in to change notification settings - Fork 261
RF: Use np.flip instead of flip_axis #916
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
Conversation
The package requires numpy >= 1.13, np.flip was added in 1.12 Add deprecation (from 3.2 until 5.0) + deprecation test Remove flip_axis test
Codecov Report
@@ Coverage Diff @@
## master #916 +/- ##
==========================================
- Coverage 91.81% 91.73% -0.09%
==========================================
Files 97 97
Lines 12359 12357 -2
Branches 2177 2177
==========================================
- Hits 11348 11336 -12
- Misses 678 684 +6
- Partials 333 337 +4
Continue to review full report at Codecov.
|
In order to pass the CI...
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.
Thanks! One minor suggestion.
@@ -230,20 +230,21 @@ def inv_ornt_aff(ornt, shape): | |||
|
|||
|
|||
@deprecate_with_version('orientation_affine deprecated. ' | |||
'Please use inv_ornt_aff instead' | |||
'Please use inv_ornt_aff instead.', |
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.
Oof. Good catch. I guess bumping back to 4.0 is the right thing to do, though hopefully nobody is depending on it, still.
Co-authored-by: Chris Markiewicz <[email protected]>
The package requires numpy >= 1.13, np.flip was added in 1.12
Add deprecation (from 3.2 until 5.0) + deprecation test
Remove flip_axis test