Changeset 44312de for python/tests


Ignore:
Timestamp:
May 11, 2016, 11:00:22 AM (9 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, pitchshift, sampler, timestretch, yinfft+
Children:
cd2791f
Parents:
88554b9
Message:

python/tests/test_fvec.py: cope with accumulated errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_fvec.py

    r88554b9 r44312de  
    9898        alpha = np.random.rand() * 5.
    9999        x_alpha_norm = (np.sum(np.abs(x)**alpha)/len(x))**(1/alpha)
    100         assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm)
     100        assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm, decimal = 5)
    101101
    102102class aubio_zero_crossing_rate_test(TestCase):
Note: See TracChangeset for help on using the changeset viewer.