Changeset 4afa448e


Ignore:
Timestamp:
Jul 11, 2012, 10:41:04 PM (12 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:
299c2b0
Parents:
012b324
Message:

test_fvec.py: zero_crossing_rate almost equal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • interfaces/python/test_fvec.py

    r012b324 r4afa448e  
    8686    def test_zero_crossing_rate(self):
    8787        a = array([0,1,-1], dtype='float32')
    88         self.assertEquals (zero_crossing_rate(a), 1./3 )
     88        assert_almost_equal (zero_crossing_rate(a), 1./3. )
    8989        a = array([0.]*100, dtype='float32')
    9090        self.assertEquals (zero_crossing_rate(a), 0 )
Note: See TracChangeset for help on using the changeset viewer.