summaryrefslogtreecommitdiff
path: root/gr-digital/python/qa_constellation_receiver.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/python/qa_constellation_receiver.py')
-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