Changeset 598774b for python/tests


Ignore:
Timestamp:
Nov 28, 2016, 4:25:14 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler
Children:
8fcbd37
Parents:
26fecba
git-author:
Paul Brossier <piem@piem.org> (10/03/16 12:24:35)
git-committer:
Paul Brossier <piem@piem.org> (11/28/16 16:25:14)
Message:

python/tests/test_source.py: only check if last frames are non silent on brownnoise (weak)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_source.py

    r26fecba r598774b  
    5757            if read < f.hop_size:
    5858                assert_equal(samples[read:], 0)
    59                 if 'silence' not in f.uri:
     59                if 'brownnoise' in f.uri:
    6060                    self.assertEquals(np.count_nonzero(samples[:read]), read)
    6161                break
     
    159159            if read < f.hop_size:
    160160                assert_equal(samples[:,read:], 0)
    161                 if 'silence' not in f.uri:
     161                if 'brownnoise' in f.uri:
    162162                    self.assertEquals(np.count_nonzero(samples[:,:read]), read)
    163163                break
Note: See TracChangeset for help on using the changeset viewer.