Changeset a4cc8e5 for python


Ignore:
Timestamp:
Mar 5, 2013, 4:58:05 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:
f50e534
Parents:
0d222ee
Message:

tests/: array_from_file to look for file in tests/

Location:
python/tests
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_filter.py

    r0d222ee ra4cc8e5  
    44from aubio import fvec, digital_filter
    55from numpy import array
    6 
    7 def array_from_text_file(filename, dtype = 'float'):
    8   return array([line.split() for line in open(filename).readlines()],
    9       dtype = dtype)
     6from utils import array_from_text_file
    107
    118class aubio_filter_test_case(TestCase):
  • python/tests/test_filterbank.py

    r0d222ee ra4cc8e5  
    77from numpy import array
    88from aubio import cvec, filterbank
    9 
    10 def array_from_text_file(filename, dtype = 'float'):
    11   return array([line.split() for line in open(filename).readlines()],
    12       dtype = dtype)
     9from utils import array_from_text_file
    1310
    1411class aubio_filterbank_test_case(TestCase):
Note: See TracChangeset for help on using the changeset viewer.