-
Notifications
You must be signed in to change notification settings - Fork 52
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
Fix issues with Python 3 compatibility #134
Conversation
With this change the Gallery can now also be build with Python 3.5. The offender was doc/_gallery/plot_4_2_2_bertrand_hyperbolic_gd.py
@vollbier Thanks for this! There are some issues with one testcase. They need to be modified a bit for Python 3.5. |
Also, the |
@@ -81,8 +81,8 @@ def pseudo_wigner_ville(signal, timestamps=None, n_fbins=None, fwindow=None): | |||
for jcol in range(n_fbins): | |||
if np.abs(tfr[jcol, icol]) > threshold: | |||
jcolhat = jcol - tf2[jcol, icol] | |||
jcolhat = np.remainder(np.remainder(jcolhat - 1, | |||
n_fbins) + n_fbins, n_fbins) | |||
jcolhat =int(np.remainder(np.remainder(jcolhat - 1, |
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.
There needs to be a space between the =
and int
.
Besides some overlong lines, this file is according to the spyder introspection fully PEP8 compliant
@jaidevd I granted you access to vollbier/pytftb and added the gitignore file. |
Remove the file doc/.gitignore and add those items to the default gitignore
Py2 doesn't have the former
@vollbier Thanks, everything's fine now. Merging. |
I tried to fix all issues with Python 3 where a float was used as an index.
All examples in the Gallery compile now with Python 3.5