patch-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patch-gnuradio] [PATCH] Digital: make seed value unambiguous


From: Martin Braun
Subject: [Patch-gnuradio] [PATCH] Digital: make seed value unambiguous
Date: Sat, 14 Apr 2012 13:41:42 +0200

---
 gr-digital/python/qa_constellation_receiver.py |    6 +++---
 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 6c00246..fc22771 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
-- 
1.7.5.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]