Skip to content

Make all examples Python 3 compatible #263

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

Merged
merged 10 commits into from
Jan 5, 2019

Conversation

roryyorke
Copy link
Contributor

This is built on #262.

It includes a Bash script to load all example scripts, and run them where possible (all scripts can be executed except tfvis.py).

Reimplemented mlab.find as private _find.

Replaced mlab.frange calls with equivalent numpy.linspace call, and
corrected phaseplot.phase_plot docs for how the X and Y arguments are
used.
Added titles, removed all show calls except last.
tfvis.py uses Tkinter, and won't work as-is in Python 3.
Uses Python 3 tkinter module name; the future package lets this work
in Python 2 as well.
@murrayrm
Copy link
Member

murrayrm commented Jan 4, 2019

@roryyorke I get a failure on Travis CI on this PR. When I pulled to my local account and then pushed to my personal repository, I got the error "Could not parse .travis.yml". I think this is why there is no Travis CI info above.

@roryyorke
Copy link
Contributor Author

Where do you see the error?

I'm getting no Travis builds at all, but can't see why. I thought maybe it was the webhook problem, though I see that only kicks in from February.

The previous syntax was completely wrong.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 78.225% when pulling def37f8 on roryyorke:rory/fix-examples-2 into 0d94329 on python-control:master.

@murrayrm murrayrm merged commit ed80cbe into python-control:master Jan 5, 2019
@roryyorke roryyorke deleted the rory/fix-examples-2 branch January 5, 2019 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants