-
Notifications
You must be signed in to change notification settings - Fork 438
Updated examples to be PEP compliant #307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Removed MATLAB-like formatting such as semi-colons, syntax and indenting PEP compliant (using PyCharm), changed imports from `from ___ import *` to things like `import matplotlib.pyplot as plt` and `import numpy as np`, removed tabs
examples/pvtol-nested.py
Outdated
if ax.get_label() == 'control-bode-magnitude': | ||
break | ||
ax.semilogx([1e-4, 1e3], 20 * np.log10([1, 1]), 'k-') | ||
ax.semilogx([1e-4, 1e3], 20*np.log10([1, 1]), 'k-') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be indented? It means that it could get executed multiple times?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! I misunderstood that. Will revert it back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this line is still indented and shouldn't be?
@billtubbs Did a quick look through the changes. Overall they look good! Some small comments/questions for you to consider, but I think this is fine as is. Will give you a chance to update in case any of the comments resonate, but then we can merge these in. |
Made various edits to all the example scripts including:
print
statements withprint(...)
from ___ import *
to conventions such asimport matplotlib.pyplot as plt
andimport numpy as np
Outstanding issues:
np.matrix