Skip to content

AttributeError exception being thrown in thinkdsp.py call to numpy  #92

@sizzzzlerz

Description

@sizzzzlerz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions