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

DCT initialization #16

Closed giumas closed 8 years ago

giumas commented 8 years ago

There could be a minor issue with the __init__ of the DCT class: https://github.com/AllenDowney/ThinkDSP/blob/master/code/thinkdsp.py#L485

It is an exact duplication of the __init__ of the parent _SpectrumParent class: https://github.com/AllenDowney/ThinkDSP/blob/master/code/thinkdsp.py#L156. You could delete it or, in alternative, call the parent initialization (if you prefer to make it more explicit).

AllenDowney commented 8 years ago

Fixed b4cd21b

Thanks!