Changeset ad5eae8
- Timestamp:
- May 2, 2016, 12:00:00 PM (9 years ago)
- 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:
- dfada33
- Parents:
- e99242a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/tests/test_fft.py
re99242a rad5eae8 1 1 #! /usr/bin/env python 2 2 3 from numpy.testing import TestCase , run_module_suite3 from numpy.testing import TestCase 4 4 from numpy.testing import assert_equal, assert_almost_equal 5 5 from aubio import fvec, fft, cvec 6 from numpy import array, shape7 6 from math import pi 8 7 … … 21 20 f = fft (win_s) 22 21 fftgrain = f (timegrain) 23 assert_equal (shape(fftgrain.norm), (win_s/2+1,)) 24 assert_equal (shape(fftgrain.phas), (win_s/2+1,)) 22 del f 23 assert_equal (fftgrain.norm.shape, (win_s/2+1,)) 24 assert_equal (fftgrain.phas.shape, (win_s/2+1,)) 25 25 26 26 def test_zeros(self): … … 158 158 f.rdo(s) 159 159 160 def test_small_input_ timegrain(self):160 def test_small_input_fftgrain(self): 161 161 win_s = 1024 162 162 f = fft(win_s) … … 166 166 167 167 if __name__ == '__main__': 168 from unittestimport main168 from nose2 import main 169 169 main() 170
Note: See TracChangeset
for help on using the changeset viewer.