Code Monkey home page Code Monkey logo

Comments (3)

GarrettArm avatar GarrettArm commented on July 21, 2024

rolling back to numpy version 1.11.0 solves this issue. pip install numpy==1.11.0

i do not understand the sms-tools code well enough to revise it, but rolling back numpy is a solution.

from sms-tools.

aamirmalik avatar aamirmalik commented on July 21, 2024

I rolled back numpy to 1.11.0 as suggested. It seems that there are some incompatibility with numpy 1.12.1. After rolling back i get deprication warnings : "stft_function.py:70: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future"

Aamirs-MBP:models_interface amalik$ pip2.7 install numpy==1.11.0
Collecting numpy==1.11.0
Downloading numpy-1.11.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.9MB)
100% |████████████████████████████████| 3.9MB 293kB/s
Installing collected packages: numpy
Found existing installation: numpy 1.12.1
Uninstalling numpy-1.12.1:
Successfully uninstalled numpy-1.12.1
Successfully installed numpy-1.11.0

Aamirs-MBP:models_interface amalik$ python models_GUI.py
/Users/amalik/Google Drive/Courses/AudioSignalProcessingForMusicApplications/sms-tools/software/models_interface/stft_function.py:59: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
plt.pcolormesh(frmTime, binFreq, np.transpose(mX[:,:Nmaxplotfreq/fs+1]))
/Users/amalik/Google Drive/Courses/AudioSignalProcessingForMusicApplications/sms-tools/software/models_interface/stft_function.py:70: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
plt.pcolormesh(frmTime, binFreq, np.transpose(np.diff(pX[:,:N
maxplotfreq/fs+1],axis=1)))

from sms-tools.

DavidAntliff avatar DavidAntliff commented on July 21, 2024

@aamirmalik it's a known issue as it uses floats for array indices. It has been reported on the course forum, has a simple fix (wrap with int()), and doesn't cause any numerical problems.

from sms-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.