summaryrefslogtreecommitdiff
path: root/gr-fec/python/fec/polar/testbed.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-fec/python/fec/polar/testbed.py')
-rwxr-xr-xgr-fec/python/fec/polar/testbed.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-fec/python/fec/polar/testbed.py b/gr-fec/python/fec/polar/testbed.py
index f34f8a6b96..4ace91ee47 100755
--- a/gr-fec/python/fec/polar/testbed.py
+++ b/gr-fec/python/fec/polar/testbed.py
@@ -114,7 +114,9 @@ def channel_analysis():
print(np.min(channel_counter), np.max(channel_counter))
channel_counter[0] = np.min(channel_counter)
good_indices = find_good_indices(channel_counter, channel_counter.size // 2)
- frozen_bit_positions = np.where(good_indices > 0)
+ info_bit_positions = np.where(good_indices > 0)
+ print(info_bit_positions)
+ frozen_bit_positions = np.delete(np.arange(channel_counter.size), info_bit_positions)
print(frozen_bit_positions)
np.save('frozen_bit_positions_n256_k128_p0.11.npy', frozen_bit_positions)
good_indices *= 2000