def test_morlet():
    """Test morlet with and without zero mean"""
    Wz = morlet(1000, [10], 2., zero_mean=True)
    W = morlet(1000, [10], 2., zero_mean=False)

    assert_true(np.abs(np.mean(np.real(Wz[0]))) < 1e-5)
    assert_true(1e-3 > np.abs(np.mean(np.real(W[0]))))
dataset/ETHPy150Open mne-tools/mne-python/mne/time_frequency/tests/test_tfr.py/test_morlet/swapped operands of `>`