diff options
author | Johannes Demel <ufcsy@student.kit.edu> | 2015-08-12 16:51:02 +0200 |
---|---|---|
committer | Johannes Demel <ufcsy@student.kit.edu> | 2015-09-21 10:46:59 +0200 |
commit | d9719d7da8300c8546b305dab2eff763f47d216f (patch) | |
tree | ca8062d252e6e9f2e389fa85f045a92b5218bdee /gr-fec/python/fec/qa_polar_encoder.py | |
parent | 73d84a231c31bf8312214b5e3a0a97e15c8db98f (diff) |
polar: refarctoring and clean-up
Diffstat (limited to 'gr-fec/python/fec/qa_polar_encoder.py')
-rw-r--r-- | gr-fec/python/fec/qa_polar_encoder.py | 8 |
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) |