diff options
author | Martin Braun | 2012-04-14 09:16:10 -0700 |
---|---|---|
committer | Johnathan Corgan | 2012-04-14 09:16:10 -0700 |
commit | eb7b7932e7d2df651f00553561b66f0337f0bede (patch) | |
tree | cf3d8368b4e44ff00d0c7b8367882a168bcb3cca /gr-digital | |
parent | c7139a7eca69b3245c615ca9ac830ac04eff777c (diff) | |
download | gnuradio-eb7b7932e7d2df651f00553561b66f0337f0bede.tar.gz gnuradio-eb7b7932e7d2df651f00553561b66f0337f0bede.tar.bz2 gnuradio-eb7b7932e7d2df651f00553561b66f0337f0bede.zip |
digital: make seed value unambiguous
Diffstat (limited to 'gr-digital')
-rwxr-xr-x | 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 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 |