Changeset 75f9fff


Ignore:
Timestamp:
Nov 10, 2018, 12:07:12 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master
Children:
a95b386
Parents:
8354cb8
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_filterbank_mel.py

    r8354cb8 r75f9fff  
    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)
     
    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)
Note: See TracChangeset for help on using the changeset viewer.