From: Paul Brossier Date: Wed, 7 Oct 2009 23:23:31 +0000 (+0200) Subject: tests/python: update imports X-Git-Tag: bzr2git~181 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=db626228719ca87ea1ea86cd2d27c7f889d3e38d;p=aubio.git tests/python: update imports --- diff --git a/tests/python/src/pitch/pitchdetection.py b/tests/python/src/pitch/pitchdetection.py index c2114fbd..1c0de703 100644 --- a/tests/python/src/pitch/pitchdetection.py +++ b/tests/python/src/pitch/pitchdetection.py @@ -1,6 +1,5 @@ -import unittest - -from aubio.aubiowrapper import * +from template import aubio_unit_template +from localaubio import * buf_size = 4096 hop_size = 512 diff --git a/tests/python/src/spectral/fft.py b/tests/python/src/spectral/fft.py index f94f9cfc..8b596bcc 100644 --- a/tests/python/src/spectral/fft.py +++ b/tests/python/src/spectral/fft.py @@ -1,8 +1,6 @@ -import math - from template import aubio_unit_template - -from aubio.aubiowrapper import * +from localaubio import * +import math buf_size = 1024 channels = 4 diff --git a/tests/python/src/spectral/phasevoc.py b/tests/python/src/spectral/phasevoc.py index 72db90bc..6e487be9 100644 --- a/tests/python/src/spectral/phasevoc.py +++ b/tests/python/src/spectral/phasevoc.py @@ -1,6 +1,5 @@ -import unittest - -from aubio.aubiowrapper import * +from template import aubio_unit_template +from localaubio import * buf_size = 1024 hop_size = 256 diff --git a/tests/python/src/temporal/zero_crossing_rate.py b/tests/python/src/temporal/zero_crossing_rate.py index 16932410..98ad13c0 100644 --- a/tests/python/src/temporal/zero_crossing_rate.py +++ b/tests/python/src/temporal/zero_crossing_rate.py @@ -1,6 +1,5 @@ -import unittest - -from aubio.aubiowrapper import * +from template import aubio_unit_template +from localaubio import * buf_size = 2048 channels = 1 diff --git a/tests/python/src/utils/hist.py b/tests/python/src/utils/hist.py index 340f5143..d7dc774e 100644 --- a/tests/python/src/utils/hist.py +++ b/tests/python/src/utils/hist.py @@ -1,8 +1,6 @@ -import unittest -import random - from template import aubio_unit_template -from aubio.aubiowrapper import * +from localaubio import * +import random buf_size = 2048 channels = 1 diff --git a/tests/python/src/utils/scale.py b/tests/python/src/utils/scale.py index f48e6f34..510873e3 100644 --- a/tests/python/src/utils/scale.py +++ b/tests/python/src/utils/scale.py @@ -1,7 +1,5 @@ -import unittest - from template import aubio_unit_template -from aubio.aubiowrapper import * +from localaubio import * buf_size = 2000 channels = 2