Title: miso tf2ss fails without slycot · Issue #120 · python-control/python-control · GitHub
Open Graph Title: miso tf2ss fails without slycot · Issue #120 · python-control/python-control
X Title: miso tf2ss fails without slycot · Issue #120 · python-control/python-control
Description: This looks like it is failing to throw the warning to the user about it being miso and not supported without slycot for some reason. tf = control.tf([[[-235, 1.146e4], [-235, 1.146E4], [-235, 1.146E4, 0]]], [[[1, 48.78, 0], [1, 48.78, 0,...
Open Graph Description: This looks like it is failing to throw the warning to the user about it being miso and not supported without slycot for some reason. tf = control.tf([[[-235, 1.146e4], [-235, 1.146E4], [-235, 1.146...
X Description: This looks like it is failing to throw the warning to the user about it being miso and not supported without slycot for some reason. tf = control.tf([[[-235, 1.146e4], [-235, 1.146E4], [-235, 1.146...
Opengraph URL: https://github.com/python-control/python-control/issues/120
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"miso tf2ss fails without slycot","articleBody":"This looks like it is failing to throw the warning to the user about it being miso and not supported without slycot for some reason.\r\n\r\n```bash\r\ntf = control.tf([[[-235, 1.146e4],\r\n [-235, 1.146E4],\r\n [-235, 1.146E4, 0]]],\r\n [[[1, 48.78, 0],\r\n [1, 48.78, 0, 0],\r\n [0.008, 1.39, 48.78]]])\r\ntf\r\nOut[80]:\r\n\r\nInput 1 to output 1:\r\n-235 s + 1.146e+04\r\n------------------\r\n s^2 + 48.78 s\r\n\r\nInput 2 to output 1:\r\n-235 s + 1.146e+04\r\n------------------\r\n s^3 + 48.78 s^2\r\n\r\nInput 3 to output 1:\r\n -235 s^2 + 1.146e+04 s\r\n--------------------------\r\n0.008 s^2 + 1.39 s + 48.78\r\nIn [81]:\r\n\r\n\r\ncontrol.tf2ss(tf)\r\n---------------------------------------------------------------------------\r\nImportError Traceback (most recent call last)\r\n/home/jgoppert/anaconda3/lib/python3.5/site-packages/control-dev-py3.5.egg/control/statesp.py in _convertToStateSpace(sys, **kw)\r\n 646 try:\r\n--\u003e 647 from slycot import td04ad\r\n 648 if len(kw):\r\n\r\nImportError: No module named 'slycot'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nValueError Traceback (most recent call last)\r\n\u003cipython-input-81-c8ef26438f31\u003e in \u003cmodule\u003e()\r\n 1 \r\n----\u003e 2 control.tf2ss(tf)\r\n\r\n/home/jgoppert/anaconda3/lib/python3.5/site-packages/control-dev-py3.5.egg/control/statesp.py in tf2ss(*args)\r\n 1082 raise TypeError(\"tf2ss(sys): sys must be a TransferFunction \\\r\n 1083 object.\")\r\n-\u003e 1084 return _convertToStateSpace(sys)\r\n 1085 else:\r\n 1086 raise ValueError(\"Needs 1 or 2 arguments; received %i.\" % len(args))\r\n\r\n/home/jgoppert/anaconda3/lib/python3.5/site-packages/control-dev-py3.5.egg/control/statesp.py in _convertToStateSpace(sys, **kw)\r\n 671 # I think this will fail if num and den aren't 1-D after\r\n 672 # the squeeze\r\n--\u003e 673 lti_sys = lti(squeeze(sys.num), squeeze(sys.den))\r\n 674 return StateSpace(lti_sys.A, lti_sys.B, lti_sys.C, lti_sys.D,\r\n 675 sys.dt)\r\n\r\n/home/jgoppert/anaconda3/lib/python3.5/site-packages/scipy/signal/ltisys.py in __init__(self, *system, **kwargs)\r\n 759 self._den = None\r\n 760 \r\n--\u003e 761 self.num, self.den = normalize(*system)\r\n 762 \r\n 763 def __repr__(self):\r\n\r\n/home/jgoppert/anaconda3/lib/python3.5/site-packages/scipy/signal/filter_design.py in normalize(b, a)\r\n 1084 if len(b.shape) == 1:\r\n 1085 b = asarray([b], b.dtype.char)\r\n-\u003e 1086 while a[0] == 0.0 and len(a) \u003e 1:\r\n 1087 a = a[1:]\r\n 1088 outb = b * (1.0) / a[0]\r\n\r\nValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()\r\n```","author":{"url":"https://github.com/jgoppert","@type":"Person","name":"jgoppert"},"datePublished":"2016-11-14T05:14:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/120/python-control/issues/120"}
| 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:a8f0e711-335c-0622-2610-826071921eae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B67A:204B63:2B2F9D5:3A04F4A:697AD8AF |
| html-safe-nonce | 1c0ff76b49a93ba6e9f8f681b14f293fc69bda07e9c9ad8fed5bcc286ae58232 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjdBOjIwNEI2MzoyQjJGOUQ1OjNBMDRGNEE6Njk3QUQ4QUYiLCJ2aXNpdG9yX2lkIjoiNzUyNjIxNDUzMzUzNjA1Mjk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 285f8316945ae3e66dd800971f9502a3d1d12023b164d4f43037a0a50e57d9da |
| hovercard-subject-tag | issue:189030400 |
| 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/120/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf96b388c7dd534007fb6a678471013f4fe5be801098c62e53632b2ae34b1b4d/python-control/python-control/issues/120 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf96b388c7dd534007fb6a678471013f4fe5be801098c62e53632b2ae34b1b4d/python-control/python-control/issues/120 |
| og:image:alt | This looks like it is failing to throw the warning to the user about it being miso and not supported without slycot for some reason. tf = control.tf([[[-235, 1.146e4], [-235, 1.146E4], [-235, 1.146... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jgoppert |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4af1ba0e68200258a80b0c5ab34f12a78bf48372a377a11e14eb668863c03b3a |
| 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 | 353b231ffaec2de44db15b2e82887804ede7c21e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width