Changeset b99e2a5


Ignore:
Timestamp:
Sep 16, 2017, 11:55:33 PM (7 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/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
7b7a58e
Parents:
e7556a1
Message:

python/tests/test_dct.py: pass with fftw

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_dct.py

    re7556a1 rb99e2a5  
    4141        a_in[3] = np.pi
    4242        a_expected = aubio.fvec(precomputed_some_ones)
    43         assert_almost_equal(a_dct(a_in), a_expected, decimal=7)
     43        assert_almost_equal(a_dct(a_in), a_expected, decimal=6)
    4444
    4545    def test_reconstruction(self):
     
    6161        """ test that creation fails with a non power-of-two size """
    6262        # supports for non 2** fft sizes only when compiled with fftw3
     63        size = 13
    6364        try:
    6465            with self.assertRaises(RuntimeError):
    65                 aubio.dct(13)
     66                aubio.dct(size)
    6667        except AssertionError:
    67             self.skipTest('creating aubio.dct with size %d did not fail' % win_s)
     68            self.skipTest('creating aubio.dct with size %d did not fail' % size)
Note: See TracChangeset for help on using the changeset viewer.