History

Merge branch 'master' into feature/pytest

Paul Brossier committed 7 years ago

Commit c1ba75b2 parents adc6e02 6b84d8130 files · +654 −74Browse files

Showing the changes to python/tests (1 of 30 files). Show all

Unified · Split

python/tests/test_mfcc.py+4−2
@@ -111,13 +111,15 @@ class aubio_mfcc_fb_params(TestCase): · 110 unmodified lines
111 def test_set_scale(self):111 def test_set_scale(self):
112 buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000112 buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000
113 m = mfcc(buf_size, n_filters, n_coeffs, samplerate)113 m = mfcc(buf_size, n_filters, n_coeffs, samplerate)
114 m.set_scale(10.)114 m.set_scale(10.5)
115 assert m.get_scale() == 10.5
115 m(cvec(buf_size))116 m(cvec(buf_size))
116 117
117 def test_set_power(self):118 def test_set_power(self):
118 buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000119 buf_size, n_filters, n_coeffs, samplerate = 512, 20, 10, 16000
119 m = mfcc(buf_size, n_filters, n_coeffs, samplerate)120 m = mfcc(buf_size, n_filters, n_coeffs, samplerate)
120 m.set_power(2.)121 m.set_power(2.5)
122 assert m.get_power() == 2.5
121 m(cvec(buf_size))123 m(cvec(buf_size))
122 124
123 def test_set_mel_coeffs(self):125 def test_set_mel_coeffs(self):

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t