def test_complex_cepstrum():
    """The period of a periodic harmonic will show up as a peak in a 
    complex cepstrum.
    """
    duration = 5.0
    fs = 8000.0
    samples = int(fs*duration)
    t = fs / np.arange(samples)
    fundamental = 100.0
    signal = sawtooth(2.*np.pi*fundamental*t)
    ceps, _ = complex_cepstrum(signal)
    assert(fundamental == 1.0/t[ceps.argmax()])
dataset/ETHPy150Open python-acoustics/python-acoustics/tests/test_cepstrum.py/test_complex_cepstrum/swapped operands of `/`