summaryrefslogtreecommitdiff
path: root/gr-fec/python/fec/qa_polar_encoder.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-fec/python/fec/qa_polar_encoder.py')
-rw-r--r--gr-fec/python/fec/qa_polar_encoder.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/gr-fec/python/fec/qa_polar_encoder.py b/gr-fec/python/fec/qa_polar_encoder.py
index 90190cd719..22d9b11fae 100644
--- a/gr-fec/python/fec/qa_polar_encoder.py
+++ b/gr-fec/python/fec/qa_polar_encoder.py
@@ -101,12 +101,10 @@ class test_polar_encoder(gr_unittest.TestCase):
self.tb.run()
res = np.array(snk.data()).astype(dtype=int)
-
- print(res)
- print(ref)
self.assertTupleEqual(tuple(res), tuple(ref))
def get_test_data(self, block_size, num_info_bits, num_blocks, is_packed):
+ # helper function to set up test data and together with encoder object.
num_frozen_bits = block_size - num_info_bits
frozen_bit_positions = cc.frozen_bit_positions(block_size, num_info_bits, 0.0)
frozen_bit_values = np.array([0] * num_frozen_bits,)
@@ -122,10 +120,6 @@ class test_polar_encoder(gr_unittest.TestCase):
return data, ref, polar_encoder
-
-
-
-
if __name__ == '__main__':
gr_unittest.run(test_polar_encoder)