Title: Fix expand_dims warnings in triinterpolate by dstansby · Pull Request #12294 · matplotlib/matplotlib · GitHub
Open Graph Title: Fix expand_dims warnings in triinterpolate by dstansby · Pull Request #12294 · matplotlib/matplotlib
X Title: Fix expand_dims warnings in triinterpolate by dstansby · Pull Request #12294 · matplotlib/matplotlib
Description: np.expand_dims is meant to take the axis after which a new dimension is to be inserted, so the 3 just needed changed to 2 for the bottom block. (see the note at https://docs.scipy.org/doc/numpy/reference/generated/numpy.expand_dims.html) This was causing lots of test warnings like /Users/dstansby/github/matplotlib/lib/matplotlib/tri/triinterpolate.py:1069: DeprecationWarning: Both axis > a.ndim and axis < -a.ndim - 1 are deprecated and will raise an AxisError in the future. col2 = _prod_vectorized(J2, np.expand_dims(tri_dz[:, 2, :], axis=3))
Open Graph Description: np.expand_dims is meant to take the axis after which a new dimension is to be inserted, so the 3 just needed changed to 2 for the bottom block. (see the note at https://docs.scipy.org/doc/numpy/ref...
X Description: np.expand_dims is meant to take the axis after which a new dimension is to be inserted, so the 3 just needed changed to 2 for the bottom block. (see the note at https://docs.scipy.org/doc/numpy/ref...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/12294
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1d6334f7-9800-2d9f-9ae7-3c1bf0bcbbf7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A8AE:35558F:273EDA4:38DC1FA:6A5508CF |
| html-safe-nonce | 3796e9a931fc84b10004c625bda10c06332464bd3b048034e31bcaf16ff86927 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEFFOjM1NTU4RjoyNzNFREE0OjM4REMxRkE6NkE1NTA4Q0YiLCJ2aXNpdG9yX2lkIjoiODg1MzQ0MzkxMDE0OTc1Njk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ef9d0c2b440d07d38bb54a14d4da9d9a511b6d74ffd21ffc6fe15ee73aef6aa6 |
| hovercard-subject-tag | pull_request:218249687 |
| 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/12294/files |
| twitter:image | https://avatars.githubusercontent.com/u/6197628?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/6197628?s=400&v=4 |
| og:image:alt | np.expand_dims is meant to take the axis after which a new dimension is to be inserted, so the 3 just needed changed to 2 for the bottom block. (see the note at https://docs.scipy.org/doc/numpy/ref... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| 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 | 0f2adbaa4b43ea302b02981f637a782ae92ed6dc |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width