Permalink
Browse files

tweaked signal test harness

  • Loading branch information...
1 parent a265c0c commit 92d2145ff27e7bd7d49242a735f230e18be947fd @aaronj1335 committed Dec 13, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 sig/test.py
View
@@ -8,12 +8,12 @@
"""
if 'plot' not in globals():
- from pylab import plot,show,vlines
+ from pylab import *
execfile('sig/__init__.py')
-s = Signal(raw_signal=raw_signal('outsilver1.pcm'))
+s = Signal(raw_signal=raw_signal('out.pcm'))
d = Decoder(signal=s, filtering='medfilt')
def vline(x, color='r'):
@@ -22,7 +22,7 @@ def vline(x, color='r'):
def incremental(s=s, d=d):
vline(s.start_time, 'g')
vline(s.end_time, 'g')
- plot(s.x, s.medfilt())
+ plot(s.x, s.smoothed(10))
for i in d.bits():
vline(i[1] / s.FS)
show()

0 comments on commit 92d2145

Please sign in to comment.