1

According to docs, there is a

scipy.signal.stft

but when trying to access that function I get the error from the title. The function is documented here.

Also, scip.signal.istft does not exist either. Any suggestions?

LF00
  • 27,015
  • 29
  • 156
  • 295
Luca
  • 558
  • 4
  • 18
  • 1
    Which scipy version do you have? The docs seem to describe v1.0.0. (My v.0.18.1 did not have the function either.) – JohanL May 20 '17 at 09:53
  • [check the version](http://stackoverflow.com/q/21385196/6521116) – LF00 May 20 '17 at 09:54

3 Answers3

2

From the docs: New in version 0.19.0.

http://scipy.github.io/devdocs/generated/scipy.signal.stft.html#scipy.signal.stft

carthurs
  • 553
  • 1
  • 5
  • 18
1

You need to check your module version, you van refer to this post.

stft func is added in the SciPy 0.19.0, check this post to upgrade your module to the newsest version.

Community
  • 1
  • 1
LF00
  • 27,015
  • 29
  • 156
  • 295
0

You need to upgrade to v 0.19.0. I tried many ways to do that but always got 0.18 instead. So to upgrade to 0.19.0 just simply do

pip install scipy==0.19.0
Tahlil
  • 2,680
  • 6
  • 43
  • 84