summaryrefslogtreecommitdiff
path: root/gr-blocks/python/qa_file_metadata.py
diff options
context:
space:
mode:
authorMartin Braun2013-02-26 13:44:12 +0100
committerMartin Braun2013-02-26 13:44:12 +0100
commit7bb8c89e224e7b2c9ddbc5b4f50c79ffb0da2557 (patch)
treeaec6e881cdd825c39a084ce7aa16a87c045a4fae /gr-blocks/python/qa_file_metadata.py
parentd7766c2c8d12bbfaf29b83cfea5ff95475b45d86 (diff)
parenta54dc5bab6cc38513e9732be9f5c2670145b160f (diff)
downloadgnuradio-7bb8c89e224e7b2c9ddbc5b4f50c79ffb0da2557.tar.gz
gnuradio-7bb8c89e224e7b2c9ddbc5b4f50c79ffb0da2557.tar.bz2
gnuradio-7bb8c89e224e7b2c9ddbc5b4f50c79ffb0da2557.zip
Merge branch 'master' of git://github.com/gnuradio/gnuradio into grmodtool
Diffstat (limited to 'gr-blocks/python/qa_file_metadata.py')
-rw-r--r--gr-blocks/python/qa_file_metadata.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/python/qa_file_metadata.py b/gr-blocks/python/qa_file_metadata.py
index 29ed0d1c8..c7826b1d3 100644
--- a/gr-blocks/python/qa_file_metadata.py
+++ b/gr-blocks/python/qa_file_metadata.py
@@ -28,8 +28,8 @@ import os, math
def sig_source_c(samp_rate, freq, amp, N):
t = map(lambda x: float(x)/samp_rate, xrange(N))
- y = map(lambda x: math.cos(2.*math.pi*freq*x) + \
- 1j*math.sin(2.*math.pi*freq*x), t)
+ y = map(lambda x: amp*math.cos(2.*math.pi*freq*x) + \
+ 1j*amp*math.sin(2.*math.pi*freq*x), t)
return y
class test_file_metadata(gr_unittest.TestCase):