Skip to content

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

Merged
merged 4 commits into from
May 26, 2020

Conversation

jond01
Copy link
Contributor

@jond01 jond01 commented May 25, 2020

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

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
@jond01 jond01 mentioned this pull request May 25, 2020
5 tasks
@codecov
Copy link

codecov bot commented May 25, 2020

Codecov Report

Merging #916 into master will decrease coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
nibabel/orientations.py 100.00% <100.00%> (ø)
nibabel/environment.py 75.00% <0.00%> (-20.00%) ⬇️
nibabel/casting.py 85.28% <0.00%> (-0.87%) ⬇️
nibabel/dft.py 80.36% <0.00%> (-0.62%) ⬇️
nibabel/nifti1.py 91.66% <0.00%> (-0.31%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7bc31e5...e537732. Read the comment docs.

Copy link
Member

@effigies effigies left a 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.',
Copy link
Member

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]>
@effigies effigies merged commit 966a01e into nipy:master May 26, 2020
@jond01 jond01 deleted the deprecate-flip_axis branch May 26, 2020 15:03
@effigies effigies added this to the 3.2.0 milestone Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants