summaryrefslogtreecommitdiff
path: root/gr-blocks/python
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-12-16 15:40:09 -0800
committerMarcus Müller <marcus@hostalia.de>2018-12-17 23:33:52 +0100
commitd860bf07fdcbf0a12b1c61ae92c0f4755e83655c (patch)
tree395422dde4059f2fa6d9d3daf784fa8763b7bcdb /gr-blocks/python
parent4a40f860f560744d30a25fc24966afd891e41788 (diff)
blocks: Give qa_moving_average.py a fixed random seed
Diffstat (limited to 'gr-blocks/python')
-rw-r--r--gr-blocks/python/blocks/qa_moving_average.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/gr-blocks/python/blocks/qa_moving_average.py b/gr-blocks/python/blocks/qa_moving_average.py
index 87f8d3015f..fa8383c7c9 100644
--- a/gr-blocks/python/blocks/qa_moving_average.py
+++ b/gr-blocks/python/blocks/qa_moving_average.py
@@ -41,6 +41,7 @@ def make_random_float_tuple(L, scale=1):
class test_moving_average(gr_unittest.TestCase):
def setUp(self):
+ random.seed(0)
self.tb = gr.top_block()
def tearDown(self):
@@ -54,7 +55,6 @@ class test_moving_average(gr_unittest.TestCase):
tb = self.tb
N = 10000
- seed = 0
data = make_random_float_tuple(N, 1)
expected_result = N*[0,]
@@ -75,7 +75,6 @@ class test_moving_average(gr_unittest.TestCase):
tb = self.tb
N = 10000
- seed = 0
data = make_random_complex_tuple(N, 1)
expected_result = N*[0,]
@@ -99,7 +98,6 @@ class test_moving_average(gr_unittest.TestCase):
vlen = 5
N = 10*vlen
- seed = 0
data = make_random_float_tuple(N, 2**10)
data = [int(d*1000) for d in data]
src = blocks.vector_source_i(data, False)