Title: Updated numpy is causing unit test error · Issue #231 · python-control/python-control · GitHub
Open Graph Title: Updated numpy is causing unit test error · Issue #231 · python-control/python-control
X Title: Updated numpy is causing unit test error · Issue #231 · python-control/python-control
Description: This problem was first flagged in slycot issue #35. In statesp_test.py the following code is used to check for a deprecation warning: # Deprecated version of the call (should generate warning) import warnings with warnings.catch_warnings...
Open Graph Description: This problem was first flagged in slycot issue #35. In statesp_test.py the following code is used to check for a deprecation warning: # Deprecated version of the call (should generate warning) impo...
X Description: This problem was first flagged in slycot issue #35. In statesp_test.py the following code is used to check for a deprecation warning: # Deprecated version of the call (should generate warning) impo...
Opengraph URL: https://github.com/python-control/python-control/issues/231
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Updated numpy is causing unit test error","articleBody":"This problem was first flagged in [slycot issue #35](https://github.com/python-control/Slycot/issues/35).\r\n\r\nIn `statesp_test.py` the following code is used to check for a deprecation warning:\r\n```\r\n # Deprecated version of the call (should generate warning)\r\n import warnings\r\n with warnings.catch_warnings(record=True) as w:\r\n warnings.simplefilter(\"always\")\r\n sys.evalfr(1.)\r\n assert len(w) = 1\r\n assert issubclass(w[-1].category, PendingDeprecationWarning)\r\n```\r\nA new release of `numpy` is generating a deprecation warning on top of the one coming from `python-control`:\r\n```\r\n/Users/murray/Dropbox/macosx/src/python-control/murrayrm/control/statesp.py:390: PendingDeprecationWarning: StateSpace.evalfr(omega) will be depracted in a future release of python-control; use evalfr(sys, omega*1j) instead\r\n PendingDeprecationWarning)\r\n/Users/murray/anaconda/envs/python3.5-test-slycot/lib/python3.5/site-packages/numpy/matrixlib/defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.\r\n return matrix(data, dtype=dtype, copy=False)\r\n```\r\nAs a consequence, we get two warnings instead of one and the unit test fails.\r\n\r\nShort term fix would be to update the unit test, but the better fix would be to address the underlying numpy warning.\r\n","author":{"url":"https://github.com/murrayrm","@type":"Person","name":"murrayrm"},"datePublished":"2018-07-29T20:57:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/231/python-control/issues/231"}
| 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:be38a630-ad99-4514-d00a-560102a2939e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4BC:13AA49:4B0F96:64C0AC:697CF216 |
| html-safe-nonce | 21a7c3b8c470670ab92b363b8c24e45324a3b020518572081c7885dbb7b2f541 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEJDOjEzQUE0OTo0QjBGOTY6NjRDMEFDOjY5N0NGMjE2IiwidmlzaXRvcl9pZCI6IjE3MDY1MzgzMTU0NzUxMjA2NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6d854b1c333c97f5be863498522e82767f7c578778271a9a42ac5450fbab3f76 |
| hovercard-subject-tag | issue:345562146 |
| 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/python-control/python-control/231/issue_layout |
| twitter:image | https://opengraph.githubassets.com/053545a63f2770eb814900f76c29cbae063c0e0cd18b6b8fb6aa73cbcd7e4dd5/python-control/python-control/issues/231 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/053545a63f2770eb814900f76c29cbae063c0e0cd18b6b8fb6aa73cbcd7e4dd5/python-control/python-control/issues/231 |
| og:image:alt | This problem was first flagged in slycot issue #35. In statesp_test.py the following code is used to check for a deprecation warning: # Deprecated version of the call (should generate warning) impo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | murrayrm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 28e7ca4155534425a15f1dc5e08f1b68ec10cd34457a151b54350f3c41509ccd |
| turbo-cache-control | no-preview |
| go-import | github.com/python-control/python-control git https://github.com/python-control/python-control.git |
| octolytics-dimension-user_id | 2285872 |
| octolytics-dimension-user_login | python-control |
| octolytics-dimension-repository_id | 22791752 |
| octolytics-dimension-repository_nwo | python-control/python-control |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22791752 |
| octolytics-dimension-repository_network_root_nwo | python-control/python-control |
| 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 | a52bcabff335e5b06d23d036f06e742e55f85cd9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width