Changeset ad5eae8


Ignore:
Timestamp:
May 2, 2016, 12:00:00 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, pitchshift, sampler, timestretch, yinfft+
Children:
dfada33
Parents:
e99242a
Message:

python/tests/test_fft.py: clean up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_fft.py

    re99242a rad5eae8  
    11#! /usr/bin/env python
    22
    3 from numpy.testing import TestCase, run_module_suite
     3from numpy.testing import TestCase
    44from numpy.testing import assert_equal, assert_almost_equal
    55from aubio import fvec, fft, cvec
    6 from numpy import array, shape
    76from math import pi
    87
     
    2120        f = fft (win_s)
    2221        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,))
    2525
    2626    def test_zeros(self):
     
    158158            f.rdo(s)
    159159
    160     def test_small_input_timegrain(self):
     160    def test_small_input_fftgrain(self):
    161161        win_s = 1024
    162162        f = fft(win_s)
     
    166166
    167167if __name__ == '__main__':
    168     from unittest import main
     168    from nose2 import main
    169169    main()
    170 
Note: See TracChangeset for help on using the changeset viewer.