projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66760af
)
tests/python/src/spectral/fft.py: remove abs, test passes in double precision
author
Paul Brossier
<piem@piem.org>
Thu, 8 Oct 2009 01:11:30 +0000
(
03:11
+0200)
committer
Paul Brossier
<piem@piem.org>
Thu, 8 Oct 2009 01:11:30 +0000
(
03:11
+0200)
tests/python/src/spectral/fft.py
patch
|
blob
|
history
diff --git
a/tests/python/src/spectral/fft.py
b/tests/python/src/spectral/fft.py
index 8b596bcc0d2f39736ac81a686c761257823ef120..ddcd55a012ca99e97856284926cc3cd12e390016 100644
(file)
--- a/
tests/python/src/spectral/fft.py
+++ b/
tests/python/src/spectral/fft.py
@@
-92,7
+92,7
@@
class fft_unit(aubio_unit_template):
self.assertCloseEnough((buf_size-1)*some_constant, cvec_read_norm(fftgrain, 0, 0))
for index in range(1,buf_size/2+1):
- self.assertCloseEnough(some_constant,
abs(cvec_read_norm(fftgrain, 0, index)
))
+ self.assertCloseEnough(some_constant,
cvec_read_norm(fftgrain, 0, index
))
self.assertCloseEnough(0., cvec_read_norm(fftgrain, 0, buf_size/2+1))
del fftgrain