diff options
Diffstat (limited to 'gr-digital/python/digital/qa_crc32_bb.py')
-rwxr-xr-x | gr-digital/python/digital/qa_crc32_bb.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gr-digital/python/digital/qa_crc32_bb.py b/gr-digital/python/digital/qa_crc32_bb.py index 397834ffde..167470d420 100755 --- a/gr-digital/python/digital/qa_crc32_bb.py +++ b/gr-digital/python/digital/qa_crc32_bb.py @@ -34,7 +34,7 @@ class qa_crc32_bb (gr_unittest.TestCase): """ Make sure the output of a CRC set is 4 bytes longer than the input. """ data = range(16) tag_name = "len" - tag = gr.gr_tag_t() + tag = gr.tag_t() tag.offset = 0 tag.key = pmt.string_to_symbol(tag_name) tag.value = pmt.from_long(len(data)) @@ -51,7 +51,7 @@ class qa_crc32_bb (gr_unittest.TestCase): is the same as the input. """ data = (0, 1, 2, 3, 4, 5, 6, 7, 8) tag_name = "len" - tag = gr.gr_tag_t() + tag = gr.tag_t() tag.offset = 0 tag.key = pmt.string_to_symbol(tag_name) tag.value = pmt.from_long(len(data)) @@ -68,23 +68,23 @@ class qa_crc32_bb (gr_unittest.TestCase): tag_name = "length" pack_len = 8 packets = range(pack_len*2) - tag1 = gr.gr_tag_t() + tag1 = gr.tag_t() tag1.offset = 0 tag1.key = pmt.string_to_symbol(tag_name) tag1.value = pmt.from_long(pack_len) - tag2 = gr.gr_tag_t() + tag2 = gr.tag_t() tag2.offset = pack_len tag2.key = pmt.string_to_symbol(tag_name) tag2.value = pmt.from_long(pack_len) - testtag1 = gr.gr_tag_t() + testtag1 = gr.tag_t() testtag1.offset = 1 testtag1.key = pmt.string_to_symbol("tag1") testtag1.value = pmt.from_long(0) - testtag2 = gr.gr_tag_t() + testtag2 = gr.tag_t() testtag2.offset = pack_len testtag2.key = pmt.string_to_symbol("tag2") testtag2.value = pmt.from_long(0) - testtag3 = gr.gr_tag_t() + testtag3 = gr.tag_t() testtag3.offset = len(packets)-1 testtag3.key = pmt.string_to_symbol("tag3") testtag3.value = pmt.from_long(0) @@ -110,7 +110,7 @@ class qa_crc32_bb (gr_unittest.TestCase): """ Corrupt the data and make sure it fails CRC test. """ data = (0, 1, 2, 3, 4, 5, 6, 7) tag_name = "len" - tag = gr.gr_tag_t() + tag = gr.tag_t() tag.offset = 0 tag.key = pmt.string_to_symbol(tag_name) tag.value = pmt.from_long(len(data)) @@ -128,11 +128,11 @@ class qa_crc32_bb (gr_unittest.TestCase): """ Make sure tags on the CRC aren't lost. """ data = (0, 1, 2, 3, 4, 5, 6, 7, 8, 230, 166, 39, 8) tag_name = "len" - tag = gr.gr_tag_t() + tag = gr.tag_t() tag.offset = 0 tag.key = pmt.string_to_symbol(tag_name) tag.value = pmt.from_long(len(data)) - testtag = gr.gr_tag_t() + testtag = gr.tag_t() testtag.offset = len(data)-1 testtag.key = pmt.string_to_symbol('tag1') testtag.value = pmt.from_long(0) |