def test_morlet():
 Wz = morlet(1000, [10], 2.0, zero_mean=True)
 W = morlet(1000, [10], 2.0, zero_mean=False)
 assert_true((np.abs(np.mean(np.real(Wz[0]))) < 1e-05))
 assert_true((np.abs(np.mean(np.real(W[0]))) > 0.001))

def test_morlet ( ) : Wz = morlet ( 1000 , [ 10 ] , 2.0 , zero_mean = True ) W = morlet ( 1000 , [ 10 ] , 2.0 , zero_mean = False ) assert_true ( ( np . abs ( np . mean ( np . real ( Wz [ 0 ] ) ) ) < 1e-05 ) ) assert_true ( ( np . abs ( np . mean ( np . real ( W [ 0 ] ) ) ) > 0.001 ) )
test morlet with and without zero mean .