summaryrefslogtreecommitdiff
path: root/gr-analog/python/analog/qa_sig_source.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-analog/python/analog/qa_sig_source.py')
-rw-r--r--gr-analog/python/analog/qa_sig_source.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/gr-analog/python/analog/qa_sig_source.py b/gr-analog/python/analog/qa_sig_source.py
index 54e408a36e..fc88205922 100644
--- a/gr-analog/python/analog/qa_sig_source.py
+++ b/gr-analog/python/analog/qa_sig_source.py
@@ -24,7 +24,7 @@ class test_sig_source(gr_unittest.TestCase):
def test_const_f(self):
tb = self.tb
- expected_result = (1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5)
+ expected_result = [1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5]
src1 = analog.sig_source_f(1e6, analog.GR_CONST_WAVE, 0, 1.5)
op = blocks.head(gr.sizeof_float, 10)
dst1 = blocks.vector_sink_f()
@@ -36,7 +36,7 @@ class test_sig_source(gr_unittest.TestCase):
def test_const_i(self):
tb = self.tb
- expected_result = (1, 1, 1, 1)
+ expected_result = [1, 1, 1, 1]
src1 = analog.sig_source_i(1e6, analog.GR_CONST_WAVE, 0, 1)
op = blocks.head(gr.sizeof_int, 4)
dst1 = blocks.vector_sink_i()
@@ -48,7 +48,7 @@ class test_sig_source(gr_unittest.TestCase):
def test_const_b(self):
tb = self.tb
- expected_result = (1, 1, 1, 1)
+ expected_result = [1, 1, 1, 1]
src1 = analog.sig_source_b(1e6, analog.GR_CONST_WAVE, 0, 1)
op = blocks.head(gr.sizeof_char, 4)
dst1 = blocks.vector_sink_b()
@@ -61,7 +61,7 @@ class test_sig_source(gr_unittest.TestCase):
def test_sine_f(self):
tb = self.tb
sqrt2 = math.sqrt(2) / 2
- expected_result = (0, sqrt2, 1, sqrt2, 0, -sqrt2, -1, -sqrt2, 0)
+ expected_result = [0, sqrt2, 1, sqrt2, 0, -sqrt2, -1, -sqrt2, 0]
src1 = analog.sig_source_f(8, analog.GR_SIN_WAVE, 1.0, 1.0)
op = blocks.head(gr.sizeof_float, 9)
dst1 = blocks.vector_sink_f()
@@ -75,7 +75,7 @@ class test_sig_source(gr_unittest.TestCase):
def test_sine_b(self):
tb = self.tb
sqrt2 = math.sqrt(2) / 2
- temp_result = (0, sqrt2, 1, sqrt2, 0, -sqrt2, -1, -sqrt2, 0)
+ temp_result = [0, sqrt2, 1, sqrt2, 0, -sqrt2, -1, -sqrt2, 0]
amp = 8
expected_result = tuple([int(z * amp) for z in temp_result])
src1 = analog.sig_source_b(8, analog.GR_SIN_WAVE, 1.0, amp)
@@ -92,7 +92,7 @@ class test_sig_source(gr_unittest.TestCase):
def test_cosine_f(self):
tb = self.tb
sqrt2 = math.sqrt(2) / 2
- expected_result = (1, sqrt2, 0, -sqrt2, -1, -sqrt2, 0, sqrt2, 1)
+ expected_result = [1, sqrt2, 0, -sqrt2, -1, -sqrt2, 0, sqrt2, 1]
src1 = analog.sig_source_f(8, analog.GR_COS_WAVE, 1.0, 1.0)
op = blocks.head(gr.sizeof_float, 9)
dst1 = blocks.vector_sink_f()
@@ -106,7 +106,7 @@ class test_sig_source(gr_unittest.TestCase):
tb = self.tb
sqrt2 = math.sqrt(2) / 2
sqrt2j = 1j * math.sqrt(2) / 2
- expected_result = (1, sqrt2 + sqrt2j, 1j, -sqrt2 + sqrt2j, -1, -sqrt2 - sqrt2j, -1j, sqrt2 - sqrt2j, 1)
+ expected_result = [1, sqrt2 + sqrt2j, 1j, -sqrt2 + sqrt2j, -1, -sqrt2 - sqrt2j, -1j, sqrt2 - sqrt2j, 1]
src1 = analog.sig_source_c(8, analog.GR_COS_WAVE, 1.0, 1.0)
op = blocks.head(gr.sizeof_gr_complex, 9)
dst1 = blocks.vector_sink_c()
@@ -118,7 +118,7 @@ class test_sig_source(gr_unittest.TestCase):
def test_sqr_c(self):
tb = self.tb #arg6 is a bit before -PI/2
- expected_result = (1j, 1j, 0, 0, 1, 1, 1+0j, 1+1j, 1j)
+ expected_result = [1j, 1j, 0, 0, 1, 1, 1+0j, 1+1j, 1j]
src1 = analog.sig_source_c(8, analog.GR_SQR_WAVE, 1.0, 1.0)
op = blocks.head(gr.sizeof_gr_complex, 9)
dst1 = blocks.vector_sink_c()
@@ -130,8 +130,8 @@ class test_sig_source(gr_unittest.TestCase):
def test_tri_c(self):
tb = self.tb
- expected_result = (1+.5j, .75+.75j, .5+1j, .25+.75j, 0+.5j,
- .25+.25j, .5+0j, .75+.25j, 1+.5j)
+ expected_result = [1+.5j, .75+.75j, .5+1j, .25+.75j, 0+.5j,
+ .25+.25j, .5+0j, .75+.25j, 1+.5j]
src1 = analog.sig_source_c(8, analog.GR_TRI_WAVE, 1.0, 1.0)
op = blocks.head(gr.sizeof_gr_complex, 9)
dst1 = blocks.vector_sink_c()
@@ -143,8 +143,8 @@ class test_sig_source(gr_unittest.TestCase):
def test_saw_c(self):
tb = self.tb
- expected_result = (.5+.25j, .625+.375j, .75+.5j, .875+.625j,
- 0+.75j, .125+.875j, .25+1j, .375+.125j, .5+.25j)
+ expected_result = [.5+.25j, .625+.375j, .75+.5j, .875+.625j,
+ 0+.75j, .125+.875j, .25+1j, .375+.125j, .5+.25j]
src1 = analog.sig_source_c(8, analog.GR_SAW_WAVE, 1.0, 1.0)
op = blocks.head(gr.sizeof_gr_complex, 9)
dst1 = blocks.vector_sink_c()
@@ -156,7 +156,7 @@ class test_sig_source(gr_unittest.TestCase):
def test_sqr_f(self):
tb = self.tb
- expected_result = (0, 0, 0, 0, 1, 1, 1, 1, 0)
+ expected_result = [0, 0, 0, 0, 1, 1, 1, 1, 0]
src1 = analog.sig_source_f(8, analog.GR_SQR_WAVE, 1.0, 1.0)
op = blocks.head(gr.sizeof_float, 9)
dst1 = blocks.vector_sink_f()
@@ -168,7 +168,7 @@ class test_sig_source(gr_unittest.TestCase):
def test_tri_f(self):
tb = self.tb
- expected_result = (1, .75, .5, .25, 0, .25, .5, .75, 1)
+ expected_result = [1, .75, .5, .25, 0, .25, .5, .75, 1]
src1 = analog.sig_source_f(8, analog.GR_TRI_WAVE, 1.0, 1.0)
op = blocks.head(gr.sizeof_float, 9)
dst1 = blocks.vector_sink_f()
@@ -180,7 +180,7 @@ class test_sig_source(gr_unittest.TestCase):
def test_saw_f(self):
tb = self.tb
- expected_result = (.5, .625, .75, .875, 0, .125, .25, .375, .5)
+ expected_result = [.5, .625, .75, .875, 0, .125, .25, .375, .5]
src1 = analog.sig_source_f(8, analog.GR_SAW_WAVE, 1.0, 1.0)
op = blocks.head(gr.sizeof_float, 9)
dst1 = blocks.vector_sink_f()