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
Numpy Deprecated Code Replacement #3126
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.
This is awesome! Thank you so much for taking the time to fix this issue. I really like little code maintenance PRs like this. 💯 I tested the build myself and indeed, no more warnings. 🚀
I only have a couple little comments relating to style, and then we should definitely merge this. 👍
Removing syntax error Added removed newline at end of file
You may merge now. |
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! I really appreciate this PR. Would you like to add an entry to CHANGELOG.md
? 👍
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.
Second approval provided automatically after 24 hours. 👍
Thanks @shubham1206agra! |
setup.py.in
which will turn it in c++ into
PyArrayObject
to function based accessX.data
changes toPyArray_DATA(X)
X.shape
changes toPyArray_SHAPE(X)
X.flags
changes toPyArray_FLAGS(X)
NPY_OWNDATA
toNPY_ARRAY_OWNDATA
to