8000 make sure there aren't any deprecation warnings that incorrectly say stuff will happen in 1.8 · Issue #3228 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

make sure there aren't any deprecation warnings that incorrectly say stuff will happen in 1.8 #3228

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

Closed
njsmith opened this issue Apr 11, 2013 · 4 comments · Fixed by #3608
Closed
Milestone

Comments

@njsmith
Copy link
Member
njsmith commented Apr 11, 2013

There are a number of deprecations that we expected would be finalized in 1.8, but that won't be, e.g. gh-596, gh-456, gh-294. We've bumped them to reconsider for 1.9, but we should run a grep over the source to make sure that we haven't left any behind any messages that say "Warning: blah balh will happen in numpy 1.8", and if there are any we should replace them with something more vague.

@seberg
Copy link
Member
seberg commented Apr 11, 2013

Just did a quick grep. It seems that the only occasion that mentions either 1.8. or 1.9. together with deprecations is the diagonal documentation.

@charris
Copy link
Member
charris commented Aug 11, 2013

There is a test_diagonal_deprecation that checks for FutureWarning. I believe that warning was for 1.7 and we should be returning a ro view of the diagonal. Need to check that and remove the warning and test.

@charris
Copy link
Member
charris commented Aug 12, 2013

Here is the FutureWarning message

        "Numpy has detected that you (may be) writing to an array returned\n"
        "by numpy.diagonal or by selecting multiple fields in a record\n"
        "array. This code will likely break in the next numpy release --\n"
        "see numpy.diagonal or arrays.indexing reference docs for details.\n"
        "The quick fix is to make an explicit copy (e.g., do\n"
        "arr.diagonal().copy() or arr[['f0','f1']].copy()).";

What is the multiple fields thing?

@charris
Copy link
Member
charris commented Aug 12, 2013

See #3604 for the diagonal fixup.

charris added a commit to charris/numpy that referenced this issue Aug 12, 2013
Not happening. Also remove reference to selecting multiple fields out of
an array returning a view from 1.8.0 release notes.

Closes numpy#3228.
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 a pull request may close this issue.

3 participants
0