summaryrefslogtreecommitdiff
path: root/test/fft.py
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-13 11:30:30 +0100
committerCarl Hetherington <cth@carlh.net>2015-10-13 11:30:30 +0100
commit6f23b55a7783f93549115a133ca2e6e938bd0cd1 (patch)
tree6c674d088eb37dd9d91992366cfa6ddb3e0e69e5 /test/fft.py
parentf9068dcbfbb09082e29e2a779ef1a7a2f6ee849e (diff)
Some attempts to block referencing of DCPs when it is not possible.
Diffstat (limited to 'test/fft.py')
-rw-r--r--test/fft.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/fft.py b/test/fft.py
new file mode 100644
index 000000000..bc6509f6c
--- /dev/null
+++ b/test/fft.py
@@ -0,0 +1,17 @@
+#!/usr/bin/python
+
+from pylab import *
+import numpy
+
+f = open('build/test/lpf_ir')
+ir = []
+while True:
+ l = f.readline()
+ if l == "":
+ break
+
+ ir.append(float(l.strip()))
+
+#plot(abs(numpy.fft.fft(ir)))
+plot(ir)
+show()