Ignore:
Timestamp:
May 11, 2016, 7:06:08 AM (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:
b96a7b8
Parents:
1ad9dc3
Message:

python/tests/test_fvec.py: avoid import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_fvec.py

    r1ad9dc3 r0df6e9e  
    6262        self.assertEqual (alpha_norm(a, 1), 1)
    6363        a = array([0, 1], dtype=float_type)
    64         from math import sqrt
    65         assert_almost_equal (alpha_norm(a, 2), sqrt(2)/2.)
     64        assert_almost_equal (alpha_norm(a, 2), .5*2.**.5)
    6665
    6766    def test_alpha_norm_of_none(self):
Note: See TracChangeset for help on using the changeset viewer.