summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2013-11-20 14:34:56 -0500
committerTom Rondeau <tom@trondeau.com>2013-11-20 14:34:56 -0500
commita0554cb6ea85232435f9c3a2c4cc76ba0153e688 (patch)
tree8c5db4491b8506b347c9b6702545bd468507bd61
parent49ec253adaa6f650372512626279ab562c8c7096 (diff)
digital: updated qa_mpsk_receiver to have similar tests in test01 and test02.
This is based of and should fix issue #569.
-rwxr-xr-xgr-digital/python/digital/qa_mpsk_receiver.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/gr-digital/python/digital/qa_mpsk_receiver.py b/gr-digital/python/digital/qa_mpsk_receiver.py
index 922f685269..df7519dcf6 100755
--- a/gr-digital/python/digital/qa_mpsk_receiver.py
+++ b/gr-digital/python/digital/qa_mpsk_receiver.py
@@ -71,15 +71,14 @@ class test_mpsk_receiver(gr_unittest.TestCase):
self.tb.connect(self.src, self.rrc0, self.rrc1, self.test, self.snk)
self.tb.run()
- expected_result = [0.5*d for d in data]
+ expected_result = [-0.5*d for d in data]
dst_data = self.snk.data()
- # Only compare last Ncmp samples
+ # Only Ncmp samples after Nstrt samples
+ Nstrt = 9000
Ncmp = 1000
- len_e = len(expected_result)
- len_d = len(dst_data)
- expected_result = expected_result[len_e - Ncmp:]
- dst_data = dst_data[len_d - Ncmp:]
+ expected_result = expected_result[Nstrt:Nstrt+Ncmp]
+ dst_data = dst_data[Nstrt:Nstrt+Ncmp]
#for e,d in zip(expected_result, dst_data):
# print "{0:+.02f} {1:+.02f}".format(e, d)
@@ -132,8 +131,8 @@ class test_mpsk_receiver(gr_unittest.TestCase):
dst_data = self.snk.data()
- # Only compare last Ncmp samples
- Nstrt = 30000
+ # Only Ncmp samples after Nstrt samples
+ Nstrt = 9000
Ncmp = 1000
expected_result = expected_result[Nstrt:Nstrt+Ncmp]
dst_data = dst_data[Nstrt:Nstrt+Ncmp]