From dcb78a3963216cfdf8ac7080ceb133c906141205 Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Mon, 7 Nov 2022 14:08:05 +0100 Subject: [PATCH] Fixed bug in BER calculation --- sw/decoders/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/decoders/utility.py b/sw/decoders/utility.py index 06ae46c..8caf553 100644 --- a/sw/decoders/utility.py +++ b/sw/decoders/utility.py @@ -85,7 +85,7 @@ def test_decoder(encoder: typing.Any, y_hat = decoder.decode(y) total_bit_errors += count_bit_errors(d, y_hat) - total_bits += x.size + total_bits += d.size if total_bit_errors >= target_bit_errors: break