Changeset 7daa881 for python


Ignore:
Timestamp:
Oct 3, 2016, 12:24:35 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, sampler, yinfft+
Children:
5210563
Parents:
f9a543e
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

    rf9a543e r7daa881  
    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.