def test_nondefault_noverlap(self):
        x = np.zeros(64)
        x[::8] = 1
        f, p = csd(x, x, nperseg=16, noverlap=4)
        q = np.array([0, 1./12., 1./3., 1./5., 1./3., 1./5., 1./3., 5./1.,
                      1./6.])
        assert_allclose(p, q, atol=1e-12)
dataset/ETHPy150Open scipy/scipy/scipy/signal/tests/test_spectral.py/TestCSD.test_nondefault_noverlap/swapped operands of `/`