Ignore:
Timestamp:
Mar 5, 2013, 8:55:29 AM (11 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:
ad5203c
Parents:
f50e534
Message:

tests/python/: removed old python tests

File:
1 moved

Legend:

Unmodified
Added
Removed
  • python/tests/test_hist.py.old

    rf50e534 r208336b  
    1 from template import aubio_unit_template
    2 from localaubio import *
     1#! /usr/bin/env python
     2
     3from numpy.testing import TestCase, assert_equal, assert_almost_equal
     4from aubio import fvec, digital_filter
    35import random
    46
     
    1012nelems = 1000
    1113
    12 class hist_unit(aubio_unit_template):
     14class hist_test_case(TestCase):
    1315
    1416  def setUp(self):
     
    6365    """ test hist on constant under lower limit """
    6466    """ this returns 0 because constant is out of range """
    65     input = new_fvec(buf_size, channels)
     67    vec_in = fvec(buf_size)
    6668    constant = flow - 1.
    67     fvec_write_sample(input,constant,0,0)
     69    vec_in[0] = constant
    6870    aubio_hist_do_notnull(self.o, input)
    6971    self.assertCloseEnough(0., aubio_hist_mean(self.o))
Note: See TracChangeset for help on using the changeset viewer.