Title: MNT: Update basic units example to work with numpy 2.0 by greglucas · Pull Request #28441 · matplotlib/matplotlib · GitHub
Open Graph Title: MNT: Update basic units example to work with numpy 2.0 by greglucas · Pull Request #28441 · matplotlib/matplotlib
X Title: MNT: Update basic units example to work with numpy 2.0 by greglucas · Pull Request #28441 · matplotlib/matplotlib
Description: PR summary We are getting reviewdog failures in the galleries/examples tests with numpy 2.0. There are new keyword arguments required for array and array_wrap that are expected in numpy 2.0. From the release notes https://numpy.org/devdocs/release/2.0.0-notes.html array_wrap is now passed arr, context, return_scalar and support for implementations not accepting all three are deprecated. Its signature should be array_wrap(self, arr, context=None, return_scalar=False) https://numpy.org/devdocs/release/2.0.0-notes.html#the-array-special-method-now-takes-a-copy-keyword-argument NumPy will pass copy to the array special method in situations where it would be set to a non-default value (e.g. in a call to np.asarray(some_object, copy=False)). Currently, if an unexpected keyword argument error is raised after this, NumPy will print a warning and re-try without the copy keyword argument. Implementations of objects implementing the array protocol should accept a copy keyword argument with the same meaning as when passed to numpy.array or numpy.asarray. PR checklist [n/a] "closes #0000" is in the body of the PR description to link the related issue [n/a] new and changed code is tested [n/a] Plotting related features are demonstrated in an example [n/a] New Features and API Changes are noted with a directive and release note [n/a] Documentation complies with general and docstring guidelines
Open Graph Description: PR summary We are getting reviewdog failures in the galleries/examples tests with numpy 2.0. There are new keyword arguments required for array and array_wrap that are expected in numpy 2.0. From t...
X Description: PR summary We are getting reviewdog failures in the galleries/examples tests with numpy 2.0. There are new keyword arguments required for array and array_wrap that are expected in numpy 2.0. From t...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/28441
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f6b96c20-8ddf-4c23-41c3-35bcdc2d880d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C30C:348621:A49F79:DD0CD1:6A542883 |
| html-safe-nonce | dfb4e0431f771b033bcd19e725044e523da2ca56a9268f67887fc768057754b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzBDOjM0ODYyMTpBNDlGNzk6REQwQ0QxOjZBNTQyODgzIiwidmlzaXRvcl9pZCI6IjYyMDI4MDA3MzQyNjM4NDcwNDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4431634e5dc8c01141a99515b58f66c951995f7eb5782e9b8a1cdbfaed545bcc |
| hovercard-subject-tag | pull_request:1934332894 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/matplotlib/matplotlib/pull/28441/files |
| twitter:image | https://avatars.githubusercontent.com/u/12417828?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12417828?s=400&v=4 |
| og:image:alt | PR summary We are getting reviewdog failures in the galleries/examples tests with numpy 2.0. There are new keyword arguments required for array and array_wrap that are expected in numpy 2.0. From t... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width