diff options
author | Andrej Rode <mail@andrejro.de> | 2018-03-15 17:36:31 +0100 |
---|---|---|
committer | Marcus Müller <marcus.mueller@ettus.com> | 2018-03-30 16:51:31 +0200 |
commit | 8ca68d846ba9e07ec1c43f106ebcedfdbeb46c91 (patch) | |
tree | 0b6dea4ed419efc04be807c0a0e1d552eb8b3684 /gr-analog/python | |
parent | 663caa10de2a1320763d503207e98e8f3944b0a4 (diff) |
split reproducibility into types
Diffstat (limited to 'gr-analog/python')
-rw-r--r-- | gr-analog/python/analog/qa_fastnoise.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gr-analog/python/analog/qa_fastnoise.py b/gr-analog/python/analog/qa_fastnoise.py index 848b045b9a..a7730ffcb1 100644 --- a/gr-analog/python/analog/qa_fastnoise.py +++ b/gr-analog/python/analog/qa_fastnoise.py @@ -30,7 +30,7 @@ class test_fastnoise_source(gr_unittest.TestCase): self.num = 2**22 self.num_items = 10**6 - self.default_args = {"samples": self.num, "seed": 43, "ampl": 1} + self.default_args = {"samples": self.num, "seed": int(43), "ampl": 1} def tearDown (self): pass @@ -102,13 +102,14 @@ class test_fastnoise_source(gr_unittest.TestCase): self.assertAlmostEqual(data.imag.mean(), 0, places=2) self.assertAlmostEqual(data.imag.var(), 0.5, places=2) - def test_002_reproducibility(self): + def test_002_real_uniform_reproducibility(self): data1 = self.run_test_real(analog.GR_UNIFORM) data2 = self.run_test_real(analog.GR_UNIFORM) # It's pseudoramdo thus must be equal self.assertTrue(numpy.array_equal(data1, data2)) + def test_002_real_gaussian_reproducibility(self): data1 = self.run_test_real(analog.GR_GAUSSIAN) data2 = self.run_test_real(analog.GR_GAUSSIAN) |