projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4afa448
)
test_fft.py: phase can be 0 or -0
author
Paul Brossier
<piem@piem.org>
Wed, 11 Jul 2012 20:41:22 +0000
(14:41 -0600)
committer
Paul Brossier
<piem@piem.org>
Wed, 11 Jul 2012 20:41:22 +0000
(14:41 -0600)
interfaces/python/test_fft.py
patch
|
blob
|
history
diff --git
a/interfaces/python/test_fft.py
b/interfaces/python/test_fft.py
index eb20c41f7edf26a12d0e1226c1a5821ab640e3db..60738d2f07ed86771357ad64154665cb4cc9f4ac 100644
(file)
--- a/
interfaces/python/test_fft.py
+++ b/
interfaces/python/test_fft.py
@@
-87,7
+87,7
@@
class aubio_fft_test_case(TestCase):
fftgrain = f ( timegrain )
#self.plot_this ( fftgrain.phas )
assert_equal ( fftgrain.phas[0], 0)
- assert_equal (
fftgrain.phas[1]
, 0)
+ assert_equal (
abs(fftgrain.phas[1])
, 0)
assert_almost_equal (fftgrain.norm[0], impulse, decimal = 6 )
def test_rdo_before_do(self):