Giter Site home page Giter Site logo

issue opening stft file about sms-tools HOT 4 CLOSED

mtg avatar mtg commented on July 2, 2024
issue opening stft file

from sms-tools.

Comments (4)

DavidAntliff avatar DavidAntliff commented on July 2, 2024

I also see this with Python 2.7.13.

A potential fix is to change line 59 to:

plt.pcolormesh(frmTime, binFreq, np.transpose(mX[:,:int(N*maxplotfreq/fs)+1]))

And line 70 to:

plt.pcolormesh(frmTime, binFreq, np.transpose(np.diff(pX[:,:int(N*maxplotfreq/fs)+1],axis=1)))

However I'm not 100% sure if this is entirely correct, since the step value is truncated and may not be quite the right value.

I don't understand how anyone could proceed past this point without seeing this error? 5000.0/fs will always be fractional for typical sample rates, and is unlikely to yield an integer for some typical N (power of 2). Is there a version of Python where slice indices can be non-integer?

from sms-tools.

mandarptl avatar mandarptl commented on July 2, 2024

Thanks David
The issue has been solved earlier.

from sms-tools.

SpotlightKid avatar SpotlightKid commented on July 2, 2024

@mandarptl Can you reference the commit or PR with the fix? All I see is a circular reference of issues between #49 (this one), #52 and #55.

from sms-tools.

DavidAntliff avatar DavidAntliff commented on July 2, 2024

@mandarptl has it really been solved? It affected me, on master, just yesterday. I didn't see a fix anywhere obvious.

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.