Changeset 88c89e3 for python


Ignore:
Timestamp:
Sep 22, 2016, 1:46:16 PM (8 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:
70b2ab0
Parents:
fa5d8ad
Message:

python/tests/test_fvec.py: reduce alpha norm precision to 10.-4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_fvec.py

    rfa5d8ad r88c89e3  
    9999        alpha = np.random.rand() * 5.
    100100        x_alpha_norm = (np.sum(np.abs(x)**alpha)/len(x))**(1/alpha)
    101         assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm, decimal = 5)
     101        assert_almost_equal(alpha_norm(x, alpha), x_alpha_norm, decimal = 4)
    102102
    103103class aubio_zero_crossing_rate_test(TestCase):
Note: See TracChangeset for help on using the changeset viewer.