Changeset 66a150a2 for tests/python


Ignore:
Timestamp:
Nov 30, 2007, 7:39:19 PM (13 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
0f2084d
Parents:
d05c54f
Message:

move around files in tests/python according to src/ changes

Location:
tests/python
Files:
6 added
1 edited
8 moved

Legend:

Unmodified
Added
Removed
  • tests/python/run_all_tests

    rd05c54f r66a150a2  
    1515  return [i.split('.')[0].replace('/','.') for i in glob(path)]
    1616
    17 modules_to_test  = list_of_test_files('*.py')
     17modules_to_test  = []
     18modules_to_test += list_of_test_files('src/*.py')
     19modules_to_test += list_of_test_files('src/*/*.py')
    1820modules_to_test += list_of_test_files('examples/aubio*.py')
     21modules_to_test += list_of_test_files('*.py')
    1922
    2023if __name__ == '__main__':
  • tests/python/src/spectral/filterbank.py

    rd05c54f r66a150a2  
    9292  def testmfcc_channels(self):
    9393      """ check the values of each filters in the mfcc filterbank """
     94      import os.path
    9495      self.filterbank = new_aubio_filterbank_mfcc(n_filters, win_size, samplerate,
    9596        0., samplerate)
    9697      filterbank_mfcc = [ [float(f) for f in line.strip().split()]
    97         for line in open('filterbank_mfcc.txt').readlines()]
     98        for line in open(os.path.join('src','spectral','filterbank_mfcc.txt')).readlines()]
    9899      for channel in range(n_filters):
    99100        vec = aubio_filterbank_getchannel(self.filterbank,channel)
Note: See TracChangeset for help on using the changeset viewer.