History

[py] fb.set_triangle_bands does not warn for freqs <= samplerate/2

Paul Brossier committed 8 years ago

Commit 75f9fff1 parent 8354cb81 file · +2 −4Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/tests/test_filterbank_mel.py+2−4
@@ -29,8 +29,7 @@ class aubio_filterbank_mel_test_case(TestCase): · 28 unmodified lines
2929 f = filterbank(9, 1024)
3030 freq_list = [40, 80, 200, 400, 800, 1600, 3200, 6400, 12800, 15000, 24000]
3131 freqs = np.array(freq_list, dtype = float_type)
32− with assert_warns(UserWarning):
33− f.set_triangle_bands(freqs, 48000)
32+ f.set_triangle_bands(freqs, 48000)
3433 assert_equal ( f(cvec(1024)), 0)
3534 self.assertIsInstance(f.get_coeffs(), np.ndarray)
3635
@@ -38,8 +37,7 @@ class aubio_filterbank_mel_test_case(TestCase): · 1 unmodified line
3837 f = filterbank(9, 1024)
3938 freq_list = [40, 80, 200, 400, 800, 1600, 3200, 6400, 12800, 15000, 24000]
4039 freqs = np.array(freq_list, dtype = float_type)
41− with assert_warns(UserWarning):
42− f.set_triangle_bands(freqs, 48000)
40+ f.set_triangle_bands(freqs, 48000)
4341 self.assertIsInstance(f.get_coeffs(), np.ndarray)
4442 spec = cvec(1024)
4543 spec.norm[:] = 1

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