René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6b119d80-eea0-1ce4-217a-5e838a657773
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA2B8:DEBC:2360F5:31793B:697B3F98
html-safe-nonce397f53f0b90bc552e9c396ee5fb9032b1671fc7b0a021bfa4a00538b343b24ee
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkI4OkRFQkM6MjM2MEY1OjMxNzkzQjo2OTdCM0Y5OCIsInZpc2l0b3JfaWQiOiIyMTY5NTAwNzk0NTkwMjgxNjI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbaaa05abdc0e9f2dba561783f456c690e606c87169c873cd39c33f05e35ccafc
hovercard-subject-tagpull_request:286428220
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-control/python-control/pull/307/files
twitter:imagehttps://avatars.githubusercontent.com/u/7958850?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/7958850?s=400&v=4
og:image:altMade 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None6fe64d94889230be19a900846cfc91707e7dd4206878d6c208922b46a6b0735d
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-control/python-control git https://github.com/python-control/python-control.git
octolytics-dimension-user_id2285872
octolytics-dimension-user_loginpython-control
octolytics-dimension-repository_id22791752
octolytics-dimension-repository_nwopython-control/python-control
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id22791752
octolytics-dimension-repository_network_root_nwopython-control/python-control
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release15736a47b83581130a149aa1b928696bea06adde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-control/python-control/pull/307/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fpull%2F307%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fpull%2F307%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python-control%2Fpython-control
Reloadhttps://github.com/python-control/python-control/pull/307/files
Reloadhttps://github.com/python-control/python-control/pull/307/files
Reloadhttps://github.com/python-control/python-control/pull/307/files
python-control https://github.com/python-control
python-controlhttps://github.com/python-control/python-control
Notifications https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Fork 447 https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Star 2k https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Code https://github.com/python-control/python-control
Issues 87 https://github.com/python-control/python-control/issues
Pull requests 8 https://github.com/python-control/python-control/pulls
Discussions https://github.com/python-control/python-control/discussions
Actions https://github.com/python-control/python-control/actions
Projects 0 https://github.com/python-control/python-control/projects
Wiki https://github.com/python-control/python-control/wiki
Security 0 https://github.com/python-control/python-control/security
Insights https://github.com/python-control/python-control/pulse
Code https://github.com/python-control/python-control
Issues https://github.com/python-control/python-control/issues
Pull requests https://github.com/python-control/python-control/pulls
Discussions https://github.com/python-control/python-control/discussions
Actions https://github.com/python-control/python-control/actions
Projects https://github.com/python-control/python-control/projects
Wiki https://github.com/python-control/python-control/wiki
Security https://github.com/python-control/python-control/security
Insights https://github.com/python-control/python-control/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-control%2Fpython-control%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-control%2Fpython-control%2Fissues%2Fnew%2Fchoose
murrayrmhttps://github.com/murrayrm
python-control:masterhttps://github.com/python-control/python-control/tree/master
Conversation 19 https://github.com/python-control/python-control/pull/307
Commits 12 https://github.com/python-control/python-control/pull/307/commits
Checks 0 https://github.com/python-control/python-control/pull/307/checks
Files changed https://github.com/python-control/python-control/pull/307/files
Please reload this pagehttps://github.com/python-control/python-control/pull/307/files
Updated examples to be PEP compliant https://github.com/python-control/python-control/pull/307/files#top
Show all changes 12 commits https://github.com/python-control/python-control/pull/307/files
1f2a252 Updated for Python 3 billtubbs May 19, 2019 https://github.com/python-control/python-control/pull/307/commits/1f2a2520479b0509ac8bb60af13f4bd677d973a8
bac4d87 Updated for Python 3 billtubbs May 19, 2019 https://github.com/python-control/python-control/pull/307/commits/bac4d87cf0883ef0740195fa99fde891fd47bfb2
fa31119 Tested in Python 3.7 billtubbs Jun 8, 2019 https://github.com/python-control/python-control/pull/307/commits/fa311193ed2b44c6cd2501daa066e11ffb11491e
0d3a656 Edited to comply with Python PEPs billtubbs Jun 8, 2019 https://github.com/python-control/python-control/pull/307/commits/0d3a65604ad4071c0e4acbae82f391bb89907762
7e70e8a Removed spacing around `*` and `/` operators for consistency and as p… billtubbs Jun 8, 2019 https://github.com/python-control/python-control/pull/307/commits/7e70e8a06766ee93b95cf53700bf2eb0869225e7
ebc5137 Refactored name 'ord' which conflicts with built-in. billtubbs Jun 8, 2019 https://github.com/python-control/python-control/pull/307/commits/ebc5137d22525ed61396366b02d45bf2629aa3b4
fddbf0f Reformatted comments billtubbs Jun 8, 2019 https://github.com/python-control/python-control/pull/307/commits/fddbf0fd8c1058f2b872bebc36c1ae12fcb69999
1555a5b Reversed previous mistaken edit. billtubbs Jun 8, 2019 https://github.com/python-control/python-control/pull/307/commits/1555a5bf81b79b99b36a339bac61684e4048104f
ddad0a7 Removed tab characters billtubbs Jun 8, 2019 https://github.com/python-control/python-control/pull/307/commits/ddad0a7e244600f33477732ea75fa6c17a84c420
51a772b Replaced np.matrix with np.array objects billtubbs Jun 8, 2019 https://github.com/python-control/python-control/pull/307/commits/51a772bfb802db633610c6206b12f1e3c1323a51
0df099f Replaced np.matrix with np.array objects billtubbs Jun 8, 2019 https://github.com/python-control/python-control/pull/307/commits/0df099f84fd8d2c4fd0cd52b8545d7b7c7db2090
5648440 Reverted previous mistaken edit billtubbs Jun 8, 2019 https://github.com/python-control/python-control/pull/307/commits/5648440c4c33acc23225f792146d8a98ffc37523
Clear filters https://github.com/python-control/python-control/pull/307/files
Please reload this pagehttps://github.com/python-control/python-control/pull/307/files
Please reload this pagehttps://github.com/python-control/python-control/pull/307/files
bdalg-matlab.py https://github.com/python-control/python-control/pull/307/files#diff-e3346d99d5d5d6910c6d91440d970b629c820b7be1fccbf5dc715c2d4952ade8
bode-and-nyquist-plots.ipynb https://github.com/python-control/python-control/pull/307/files#diff-31cbda98ebac94ab47f88251f8dc1c78bcc108b3dcc81a6b548d741199f842a9
check-controllability-and-observability.py https://github.com/python-control/python-control/pull/307/files#diff-570ff81fd64a0b9912a4d15ad9679c8e62edfc99c57a70f722a18341dfebc3a8
genswitch.py https://github.com/python-control/python-control/pull/307/files#diff-890049addef7a93f45135f5bb70e1e2406e84ccf3667104498367ca2d3b7f7c5
phaseplots.py https://github.com/python-control/python-control/pull/307/files#diff-db5e99551ffc480c2013a4c48a4f0f091f309095e730bad295559621d1a2af96
pvtol-lqr-nested.ipynb https://github.com/python-control/python-control/pull/307/files#diff-93f7e6bf896b53bdd87fdda5cb2e154884af3feb21df55861c69977982753f42
pvtol-lqr.py https://github.com/python-control/python-control/pull/307/files#diff-8f136df8d7cb99501b64fb410a7ba3f6879916721a428d13e832f50e74d9ee50
pvtol-nested-ss.py https://github.com/python-control/python-control/pull/307/files#diff-11fcb8c540837ac35b71705fe684c280a80daa1869c5de7329b5a2b16838573b
pvtol-nested.py https://github.com/python-control/python-control/pull/307/files#diff-55bfc27c487190ed179e75f929514449bdd575d21e264a77be5c618104539d8c
robust_mimo.py https://github.com/python-control/python-control/pull/307/files#diff-0357cd6cab354d3b1231f9ecd27e0e65d4700902f73e74498743bddaa6977721
robust_siso.py https://github.com/python-control/python-control/pull/307/files#diff-9d736b822a201a8e3d55b3c83cdfba22005eaf64b731eb33f497e53577b2d03a
rss-balred.py https://github.com/python-control/python-control/pull/307/files#diff-7f53f8146877cf91b6cff0f1a14e7dd28e485095d641b87a4dfe3ee64a1962a3
secord-matlab.py https://github.com/python-control/python-control/pull/307/files#diff-da68222d62800ca64acc4b59378e87583758cd9fe236274438f4f4dae344c9ff
slycot-import-test.py https://github.com/python-control/python-control/pull/307/files#diff-ffd767a5fb3fd08cd97e84881c83e55aab5ecfdc1ff3ce5b4cfe816ac7b47d2d
test-response.py https://github.com/python-control/python-control/pull/307/files#diff-ac6e3849726de6dcb1d86f8453e2b5d8ba3d921b50acdfb6c38a2d71df5453a3
tfvis.py https://github.com/python-control/python-control/pull/307/files#diff-f096dfe25bc46bc7a9874ef4f7006aebf6370dca87b56996acb6188b5469d41d
type2_type3.py https://github.com/python-control/python-control/pull/307/files#diff-3c7717862ec8f7abb8b21a6f6e564d40b1c85f5254a5a16b85ac1e1ab30c2dd9
examples/bdalg-matlab.pyhttps://github.com/python-control/python-control/pull/307/files#diff-e3346d99d5d5d6910c6d91440d970b629c820b7be1fccbf5dc715c2d4952ade8
View file https://github.com/python-control/python-control/blob/5648440c4c33acc23225f792146d8a98ffc37523/examples/bdalg-matlab.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-control/python-control/pull/307/{{ revealButtonHref }}
https://github.com/python-control/python-control/pull/307/files#diff-e3346d99d5d5d6910c6d91440d970b629c820b7be1fccbf5dc715c2d4952ade8
examples/bode-and-nyquist-plots.ipynbhttps://github.com/python-control/python-control/pull/307/files#diff-31cbda98ebac94ab47f88251f8dc1c78bcc108b3dcc81a6b548d741199f842a9
View file https://github.com/python-control/python-control/blob/5648440c4c33acc23225f792146d8a98ffc37523/examples/bode-and-nyquist-plots.ipynb
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/python-control/python-control/pull/307/files
examples/check-controllability-and-observability.pyhttps://github.com/python-control/python-control/pull/307/files#diff-570ff81fd64a0b9912a4d15ad9679c8e62edfc99c57a70f722a18341dfebc3a8
View file https://github.com/python-control/python-control/blob/5648440c4c33acc23225f792146d8a98ffc37523/examples/check-controllability-and-observability.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-control/python-control/pull/307/{{ revealButtonHref }}
https://github.com/python-control/python-control/pull/307/files#diff-570ff81fd64a0b9912a4d15ad9679c8e62edfc99c57a70f722a18341dfebc3a8
https://github.com/python-control/python-control/pull/307/files#diff-570ff81fd64a0b9912a4d15ad9679c8e62edfc99c57a70f722a18341dfebc3a8
examples/genswitch.pyhttps://github.com/python-control/python-control/pull/307/files#diff-890049addef7a93f45135f5bb70e1e2406e84ccf3667104498367ca2d3b7f7c5
View file https://github.com/python-control/python-control/blob/5648440c4c33acc23225f792146d8a98ffc37523/examples/genswitch.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-control/python-control/pull/307/{{ revealButtonHref }}
https://github.com/python-control/python-control/pull/307/files#diff-890049addef7a93f45135f5bb70e1e2406e84ccf3667104498367ca2d3b7f7c5
Please reload this pagehttps://github.com/python-control/python-control/pull/307/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.