I am running the notebooks using Python 3.11 and the latest numpy version 1.25.0.
Line 599 in thinkdsp.py is causing an AttributeError exception to be thrown in spectrogram.plot
array = np.zeros(size, dtype=np.float)
The exception is complaining that np.float has been deprecated from numpy and that just 'float' alone should be used. I found this in other places in the file but this was the first one that was invoked. To fix this, I edited thinkdsp.py to make the changes. Once that was done, the entire notebook ran to completion.
I am running the notebooks using Python 3.11 and the latest numpy version 1.25.0.
Line 599 in thinkdsp.py is causing an AttributeError exception to be thrown in spectrogram.plot
array = np.zeros(size, dtype=np.float)
The exception is complaining that np.float has been deprecated from numpy and that just 'float' alone should be used. I found this in other places in the file but this was the first one that was invoked. To fix this, I edited thinkdsp.py to make the changes. Once that was done, the entire notebook ran to completion.