def test_dpsswavelet():
 freqs = np.arange(5, 25, 3)
 Ws = _make_dpss(1000, freqs=freqs, n_cycles=(freqs / 2.0), time_bandwidth=4.0, zero_mean=True)
 assert_true((len(Ws) == 3))
 assert_true((np.abs(np.mean(np.real(Ws[0][0]))) < 1e-05))
 assert_true((len(Ws[0]) == len(freqs)))

def test_dpsswavelet ( ) : freqs = np . arange ( 5 , 25 , 3 ) Ws = _make_dpss ( 1000 , freqs = freqs , n_cycles = ( freqs / 2.0 ) , time_bandwidth = 4.0 , zero_mean = True ) assert_true ( ( len ( Ws ) == 3 ) ) assert_true ( ( np . abs ( np . mean ( np . real ( Ws [ 0 ] [ 0 ] ) ) ) < 1e-05 ) ) assert_true ( ( len ( Ws [ 0 ] ) == len ( freqs ) ) )
test dpss tapers .