Ignore:
Timestamp:
Aug 12, 2015, 7:21:38 PM (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:
60fc05b
Parents:
3a1a5d6 (diff), 7b2d740 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'develop' into notes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_cvec.py

    r3a1a5d6 rb257b60  
    1010    def test_vector_created_with_zeroes(self):
    1111        a = cvec(10)
    12         a
    1312        shape(a.norm)
    1413        shape(a.phas)
     
    3635        spec = cvec(1024)
    3736        spec.norm[40:100] = 100
    38         assert_equal (spec.norm[0:40], 0)
    39         assert_equal (spec.norm[40:100], 100)
    40         assert_equal (spec.norm[100:-1], 0)
    41         assert_equal (spec.phas, 0)
     37        assert_equal(spec.norm[0:40], 0)
     38        assert_equal(spec.norm[40:100], 100)
     39        assert_equal(spec.norm[100:-1], 0)
     40        assert_equal(spec.phas, 0)
    4241
    4342    def test_assign_cvec_phas_slice(self):
    4443        spec = cvec(1024)
    4544        spec.phas[39:-1] = -pi
    46         assert_equal (spec.phas[0:39], 0)
    47         assert_equal (spec.phas[39:-1], -pi)
    48         assert_equal (spec.norm, 0)
     45        assert_equal(spec.phas[0:39], 0)
     46        assert_equal(spec.phas[39:-1], -pi)
     47        assert_equal(spec.norm, 0)
    4948
    5049if __name__ == '__main__':
Note: See TracChangeset for help on using the changeset viewer.