Skip to content

Make all examples Python 3 compatible#263

Merged
murrayrm merged 10 commits intopython-control:masterfrom
roryyorke:rory/fix-examples-2
Jan 5, 2019
Merged

Make all examples Python 3 compatible#263
murrayrm merged 10 commits intopython-control:masterfrom
roryyorke:rory/fix-examples-2

Conversation

@roryyorke
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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