Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MAINT: Reflect changes fromnumpy namespace refactor Part 5#26664

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@mtsokol
Copy link
Contributor

Hi!
Here's a PR that reflects changes introduced innumpy/numpy#24587. (The only item that needs to be modified in matplotlib isnp.recarray access)

@anntzer
Copy link
Contributor

While technically correct, I would suggest just dropping the use of recarrays altogether (remove the.view(np.recarray) and replacer.attr byr['attr'] throughout). If we feel like it wecould even switch to using the data kwarg (fill_between("date", pricemin, "close", alpha=0.7, data=r) etc.)

timhoffm reacted with thumbs up emoji

@ksunden
Copy link
Member

As@anntzer points out, we probably don't needrecarray at all.

However,if we do keep it, this change is backwards incompatible, and thus would force us to run our doc builds on np 2.0 (and potentially cause confusion for readers of the docs who are using current released numpy)

The direct impact of this change is minimal to us, as all changes are contained within examples, not library code.

There are two problems with this change that make ordering with regards to numpy a) merging and b) releasing 2.0 that may make us want to hold off on merging (or breaking up the change into two phases) possibly until after release:

  • The first is making sure the examplesrun in our doc build environment

    • This could be worked around with conditional imports, etc
  • The second is the inter-sphinx references torecarray, which are not found currently

    • I'm pretty sure we link against stable numpy docs, so this may hold off untilrelease
    • Merging early will cause our doc builds to constantly fail, even with backwards-compatible example usage.

@jklymak
Copy link
Member

I would not use recarray, and remove mention of it in our docs.

timhoffm reacted with thumbs up emoji

@mtsokol
Copy link
ContributorAuthor

mtsokol commentedAug 31, 2023
edited
Loading

However,if we do keep it, this change is backwards incompatible, and thus would force us to run our doc builds on np 2.0 (and potentially cause confusion for readers of the docs who are using current released numpy)

@ksunden I think it would be beneficial to removerecarray from the codebase, but in terms of this PR I don't think it's backward incompatible.

recarray is available undernp.recarray andnp.rec.recarray, so switching to the second option will still work for previousnumpy versions. Am I missing anything?

(The purpose of refactoring that piece of NumPy is to define only one place where this class is available)

@ksunden
Copy link
Member

Okay, I was thinking thatrec was anew namespace, but it isn't, so that prong is okay, the intersphinx not seeing it/breaking the doc build is still true though as of right now

timhoffm added a commit to timhoffm/matplotlib that referenced this pull requestSep 4, 2023
Structured numpy arrays are more fundamental than recarraysand sufficient in all cases.Superseedsmatplotlib#26664.
timhoffm added a commit to timhoffm/matplotlib that referenced this pull requestSep 4, 2023
Structured numpy arrays are more fundamental than recarraysand sufficient in all cases.Superseedsmatplotlib#26664.
timhoffm added a commit to timhoffm/matplotlib that referenced this pull requestSep 4, 2023
Structured numpy arrays are more fundamental than recarraysand sufficient in all cases.Superseedsmatplotlib#26664.
@timhoffmtimhoffm mentioned this pull requestSep 4, 2023
timhoffm added a commit to timhoffm/matplotlib that referenced this pull requestSep 4, 2023
Structured numpy arrays are more fundamental than recarraysand sufficient in all cases.Superseedsmatplotlib#26664.
timhoffm added a commit to timhoffm/matplotlib that referenced this pull requestSep 4, 2023
Structured numpy arrays are more fundamental than recarraysand sufficient in all cases.Superseedsmatplotlib#26664.
timhoffm added a commit to timhoffm/matplotlib that referenced this pull requestSep 6, 2023
Structured numpy arrays are more fundamental than recarraysand sufficient in all cases.Supersedesmatplotlib#26664.
timhoffm added a commit to timhoffm/matplotlib that referenced this pull requestSep 14, 2023
Structured numpy arrays are more fundamental than recarraysand sufficient in all cases.Supersedesmatplotlib#26664.
timhoffm added a commit to timhoffm/matplotlib that referenced this pull requestSep 14, 2023
Structured numpy arrays are more fundamental than recarraysand sufficient in all cases.Supersedesmatplotlib#26664.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@mtsokol@anntzer@ksunden@jklymak

[8]ページ先頭

©2009-2025 Movatter.jp