Title: Updated examples to be PEP compliant by billtubbs · Pull Request #307 · python-control/python-control · GitHub
Open Graph Title: Updated examples to be PEP compliant by billtubbs · Pull Request #307 · python-control/python-control
X Title: Updated examples to be PEP compliant by billtubbs · Pull Request #307 · python-control/python-control
Description: Made various edits to all the example scripts including: Replaced Python 2.7 print statements with print(...) Removed MATLAB-like formatting such as semi-colons Changed indenting and syntax to be PEP compliant (using PyCharm) Changed imports from from ___ import * to conventions such as import matplotlib.pyplot as plt and import numpy as np Removed tabs Added the following line to scripts that produce plot output: if 'PYCONTROL_TEST_EXAMPLES' not in os.environ: plt.show() Outstanding issues: Some examples still use out-dated np.matrix
Open Graph Description: Made various edits to all the example scripts including: Replaced Python 2.7 print statements with print(...) Removed MATLAB-like formatting such as semi-colons Changed indenting and syntax to be ...
X Description: Made various edits to all the example scripts including: Replaced Python 2.7 print statements with print(...) Removed MATLAB-like formatting such as semi-colons Changed indenting and syntax to be ...
Opengraph URL: https://github.com/python-control/python-control/pull/307
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:c9dcd5b1-487f-832b-a8cb-126e0cd2a42b |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | ABB0:333ED1:25A45E:343B9E:697B4044 |
| html-safe-nonce | b843ec39de2264d4f513e216cb720f2fcb3065ca15c064f49f6cd0b7df1d8dcb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkIwOjMzM0VEMToyNUE0NUU6MzQzQjlFOjY5N0I0MDQ0IiwidmlzaXRvcl9pZCI6IjI3MDU3MTA0NzA2MDUyNTg4MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e8713d87d318483246ce7f111932a4f959cbc59e8c85532b0dde80a9d7cbaad8 |
| hovercard-subject-tag | pull_request:286428220 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/python-control/python-control/pull/307/checks |
| twitter:image | https://avatars.githubusercontent.com/u/7958850?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/7958850?s=400&v=4 |
| og:image:alt | Made various edits to all the example scripts including: Replaced Python 2.7 print statements with print(...) Removed MATLAB-like formatting such as semi-colons Changed indenting and syntax to be ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6fe64d94889230be19a900846cfc91707e7dd4206878d6c208922b46a6b0735d |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 15736a47b83581130a149aa1b928696bea06adde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width