Title: Using a class method in a NonlinearIOSystem · Issue #629 · python-control/python-control · GitHub
Open Graph Title: Using a class method in a NonlinearIOSystem · Issue #629 · python-control/python-control
X Title: Using a class method in a NonlinearIOSystem · Issue #629 · python-control/python-control
Description: I am trying to use a class method in a NonlinearIOSystem. To test, I adapted the predator-prey example such that the predprey_rhs function becomes a method in the new predprey class. Then, I create an instance of the predprey class (pp),...
Open Graph Description: I am trying to use a class method in a NonlinearIOSystem. To test, I adapted the predator-prey example such that the predprey_rhs function becomes a method in the new predprey class. Then, I create...
X Description: I am trying to use a class method in a NonlinearIOSystem. To test, I adapted the predator-prey example such that the predprey_rhs function becomes a method in the new predprey class. Then, I create...
Opengraph URL: https://github.com/python-control/python-control/issues/629
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using a class method in a NonlinearIOSystem","articleBody":"I am trying to use a class method in a NonlinearIOSystem. To test, I adapted the predator-prey example such that the predprey_rhs function becomes a method in the new predprey class. Then, I create an instance of the predprey class (pp), and create the NonlinearIOSystem using the pp.predprey_rhs method. All good to that point. When I try to calculate the open-loop response with control.input_output_response, I get \"TypeError: dynamics() takes 4 positional arguments but 5 were given\". The method predprey_rhs has the self argument in its definition, so that shouldn't be a problem. Anyone have any ideas?","author":{"url":"https://github.com/dkunz49","@type":"Person","name":"dkunz49"},"datePublished":"2021-06-10T18:03:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/629/python-control/issues/629"}
| 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:bd578f09-57ec-9c05-ad5c-a4fb67e7827d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE88:33BF61:1040BD6:16BD05B:697A08D2 |
| html-safe-nonce | 98049d372b3b026f8afbbef6c49249f818d943d947d21b201ab3185b04406220 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTg4OjMzQkY2MToxMDQwQkQ2OjE2QkQwNUI6Njk3QTA4RDIiLCJ2aXNpdG9yX2lkIjoiNjU2OTQzMzYyOTU2MDgwMTQ5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 23514f6a0ea21d30c5a081b85bbda56d12856dd1750518323247cd1b49186d64 |
| hovercard-subject-tag | issue:917648227 |
| 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/629/issue_layout |
| twitter:image | https://opengraph.githubassets.com/10cd7758a7c1044a41dac447a2d9307c5ecb672354c01c81278aa43c279df666/python-control/python-control/issues/629 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/10cd7758a7c1044a41dac447a2d9307c5ecb672354c01c81278aa43c279df666/python-control/python-control/issues/629 |
| og:image:alt | I am trying to use a class method in a NonlinearIOSystem. To test, I adapted the predator-prey example such that the predprey_rhs function becomes a method in the new predprey class. Then, I create... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dkunz49 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24021c77440f544078f9cbe80d78a2fb16ccff65fca92deda9da3c51d1cdc5fc |
| 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 | bd34d6cb576e14ec8da51f144ef82b621f68256d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width