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
AssertionError (assert linscale >= 1.0) on matplotlib < 1.4 #2
Comments
It appears that the reason for the crash is not the division by zero. Numpy will actually give a result of -inf, which is then 'fixed' by the call to clip. For example:
The crashes you are seeing are actually related to different errors: In the Python 2 case, it appears to be an assertion error related to plot scaling, and in the Python 3 case it is due to the altered behavior of division from Python 2. I believe I have fixed the error related to Python 3 in commit 57d6730. I am unable to replicate the other error with any wav file I have on hand. Please send the clip you are using as to assist me in debugging. |
Since the first error you observed appears to be related to the use of the
The ability to choice between linear/log is added in commit a1f6434. |
Just tried the latest master. Works with both versions of python (2 and 3): $python2 spectrogram.py blah.wav #SUCCESS. $python3 spectrogram.py blah.wav #SUCCESS
I'll find a way to get you blah.wav |
I think I figured it out... I had purposely set Refer to matplotlib/matplotlib#2288 |
Fixed!
Is it best to refer to people that do have < matplotlib 1.4 to just come here (ie. this solution post #2) for the solution? |
I can probably instrument the script to detect old matplotlib and set an appropriate |
I detect there is a 13.89% this will help you @le1ca $python2 spectrogram_possible.py blah.wav $python3 spectrogram_possible.py blah.wav $python2 spectrogram_possible.py blah.wav 1024 linear $python3 spectrogram_possible.py blah.wav 1024 linear
|
On Linux Mint 17.3
The text was updated successfully, but these errors were encountered: