Title: np.gradient can not be called with the current pythonnet API · Issue #1804 · pythonnet/pythonnet · GitHub
Open Graph Title: np.gradient can not be called with the current pythonnet API · Issue #1804 · pythonnet/pythonnet
X Title: np.gradient can not be called with the current pythonnet API · Issue #1804 · pythonnet/pythonnet
Description: I am reopening an issue which was previously demoted to a question but turns out to be a shortcoming of the pythonnet API. As the discussion #1772 shows, there is no way to successfully call the function numpy.gradient(f, *varargs, axis=...
Open Graph Description: I am reopening an issue which was previously demoted to a question but turns out to be a shortcoming of the pythonnet API. As the discussion #1772 shows, there is no way to successfully call the fu...
X Description: I am reopening an issue which was previously demoted to a question but turns out to be a shortcoming of the pythonnet API. As the discussion #1772 shows, there is no way to successfully call the fu...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/1804
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"np.gradient can not be called with the current pythonnet API","articleBody":"I am reopening an issue which was previously demoted to a question but turns out to be a shortcoming of the pythonnet API. As the discussion #1772 shows, there is no way to successfully call the function numpy.gradient(f, *varargs, axis=None, edge_order=1) as documented here: https://numpy.org/doc/stable/reference/generated/numpy.gradient.html\r\n\r\nHere is an example in python\r\n\r\n```python\r\n\u003e\u003e\u003e import numpy as np\r\n\u003e\u003e\u003e dx=4.0\r\n\u003e\u003e\u003e dy=5.0\r\n\u003e\u003e\u003e zX=[[1,2,3],[4,5,6],[8,9,0]]\r\n\u003e\u003e\u003e np.gradient(zX, dx, dy)\r\n[array([[ 0.75 , 0.75 , 0.75 ],\r\n [ 0.875, 0.875, -0.375],\r\n [ 1. , 1. , -1.5 ]]), array([[ 0.2, 0.2, 0.2],\r\n [ 0.2, 0.2, 0.2],\r\n [ 0.2, -0.8, -1.8]])]\r\n\u003e\u003e\u003e\r\n```\r\n\r\nVarious ways to call the function have been tried in #1772 but none work. This should be considered a bug.","author":{"url":"https://github.com/henon","@type":"Person","name":"henon"},"datePublished":"2022-05-30T18:38:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1804/pythonnet/issues/1804"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:62dd93e7-e802-50a4-9410-985e08977c19 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B514:35E6BA:29AAD40:3A7685F:69710405 |
| html-safe-nonce | ae6d087e29a9e9ecfa08cd1255f38865ae3a093b81239ff0d2cf101d33e4c00c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTE0OjM1RTZCQToyOUFBRDQwOjNBNzY4NUY6Njk3MTA0MDUiLCJ2aXNpdG9yX2lkIjoiNTA5MzIxODU0MjAzNTIwNzE3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1b9312baef006023d9692069e38a4c316504717e6c33876a6725de7b21ab1299 |
| hovercard-subject-tag | issue:1253034341 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/pythonnet/pythonnet/1804/issue_layout |
| twitter:image | https://opengraph.githubassets.com/72439dba5a616b0b9601feebd2b38ebe9b8539cfc3c856bc5a53c86a5c362040/pythonnet/pythonnet/issues/1804 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/72439dba5a616b0b9601feebd2b38ebe9b8539cfc3c856bc5a53c86a5c362040/pythonnet/pythonnet/issues/1804 |
| og:image:alt | I am reopening an issue which was previously demoted to a question but turns out to be a shortcoming of the pythonnet API. As the discussion #1772 shows, there is no way to successfully call the fu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | henon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d17fd2bbd784dc91f3a78a2f1d2c41d9f4f8ce86136d09833e3cf21b2bde1b7 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e053d923fb27a9d948f8cefae8ba3bf43f7b938f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width