summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnathan Corgan2012-04-14 09:19:19 -0700
committerJohnathan Corgan2012-04-14 09:19:19 -0700
commit19a387d6e6cec8041d28556d3004650bf7db75ec (patch)
tree68d4e33fe8d9328568fb1564a983f3a6dba11eb9
parentf919f9dcbb54a08e6e26d6c229ce92fb784fa1b2 (diff)
parenteb7b7932e7d2df651f00553561b66f0337f0bede (diff)
downloadgnuradio-19a387d6e6cec8041d28556d3004650bf7db75ec.tar.gz
gnuradio-19a387d6e6cec8041d28556d3004650bf7db75ec.tar.bz2
gnuradio-19a387d6e6cec8041d28556d3004650bf7db75ec.zip
Merge branch 'maint'
-rwxr-xr-xgr-digital/python/qa_constellation_receiver.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-digital/python/qa_constellation_receiver.py b/gr-digital/python/qa_constellation_receiver.py
index 6c0024678..fc2277158 100755
--- a/gr-digital/python/qa_constellation_receiver.py
+++ b/gr-digital/python/qa_constellation_receiver.py
@@ -33,7 +33,8 @@ import math
# Set a seed so that if errors turn up they are reproducible.
# 1234 fails
-random.seed(1239)
+SEED = 1239
+random.seed(SEED)
# TESTING PARAMETERS
# The number of symbols to test with.
@@ -57,7 +58,6 @@ class test_constellation_receiver (gr_unittest.TestCase):
# We ignore the first half of the output data since often it takes
# a while for the receiver to lock on.
ignore_fraction = 0.8
- seed = 1234
max_data_length = DATA_LENGTH * 6
max_num_samples = 1000
@@ -76,7 +76,7 @@ class test_constellation_receiver (gr_unittest.TestCase):
# Generates some random indices to use for comparing input and
# output data (a full comparison is too slow in python).
self.indices = alignment.random_sample(
- self.max_data_length, self.max_num_samples, self.seed)
+ self.max_data_length, self.max_num_samples, SEED)
for constellation, differential in tested_constellations():
# The constellation_receiver doesn't work for constellations