Repository navigation
DEP: Deprecate np.isfortran - #32722
Conversation
ba597bf to
7656382
Compare
InessaPawson
left a comment
There was a problem hiding this comment.
Thank you, @Riaz1729!
Once you address the remaining inline comments, it should be ready to merge.
For future PRs, rebasing onto main instead of merging keeps the timeline cleaner, but it's not an issue here since we will squash merge.
4675b51 to
7fd8321
Compare
|
There are review comments waiting for responses |
Co-authored-by: Inessa Pawson <[email protected]>
Co-authored-by: Inessa Pawson <[email protected]>
Co-authored-by: Inessa Pawson <[email protected]>
|
@Riaz1729 Thank you for applying the suggestions! There is now a merge conflict with |
|
Thanks for working on this ! It looks like the latest head (2ec8268, "resolve merge conflicts") has an indentation problem in numpy/_core/numeric.py around lines 621–622: those lines are indented 3 spaces, so the module fails to parse and import numpy errors out. CI checks also don't seem to have run on this head. Could you take a look? Thanks! |
Co-authored-by: Matti Picus <[email protected]>
|
@mattip Since a few things have changed since your last review, could you please take another look? |
|
Thanks @Riaz1729 |
PR summary
Deprecates
numpy.isfortranas the first half of addressing #6597Per Deprecate isfortran and a.flags.fnc #6597, this marks
numpy.isfortran, which checks if an array is Fortran contiguous and not C contiguous. The DeprecationWarning directs users to directly usea.flags.fnc(which is called bynumpy.isfortran).At some point in the future we may be able to also deprecate
a.flags.fncif it is used minimally.First time contributor introduction
I'm a new contributor and part of the NumFOCUS Volunteer Sprints Fall 2026 cohort. I wanted to take a simple issue first so that I could make sure that I understand and am comfortable following the contribution guidelines before moving to more involved issues.
AI Disclosure
I used Antigravity (Gemini 3..8 Flash) to help me understand the structure of the codebase so I could find the relevant modules quickly. I also used it to review my PR and it identified several places (including in the
docmodule) where to add additional notes/comments about the deprecation.