AllenDowney / ThinkDSP

Think DSP: Digital Signal Processing in Python, by Allen B. Downey.
https://allendowney.github.io/ThinkDSP/
3.93k stars 3.2k forks source link

solving "make_spectrogram" bug #56

Closed aryabhatta000 closed 6 years ago

aryabhatta000 commented 6 years ago

Bug Description: np.ndarray does not accept float as values for indices [ step = seg_length // 2 ] thus the make_spectrogram function doesn't work. Solution: solving this issue by ensuring step is an integer [ step = int(seg_length // 2) ] thereby the values of i and j are also integers.

AllenDowney commented 6 years ago

Thank you!