Skip to content

Commit 67004ab

Browse files
committed
[minor] Typos
1 parent ed4e6e9 commit 67004ab

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

commpy/channelcoding/ldpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def triang_ldpc_systematic_encode(message_bits, ldpc_code_params, pad=True):
342342
ldpc_code_params : dictionary that at least contains on of these options:
343343
Option 1: generator matrix is available.
344344
generator_matrix (2D-array or sparse matrix) - generator matrix of the code.
345-
Option 2: parity check matrix is available, the generator matrix will be added as a CSR sparse matrix of ints.
345+
Option 2: parity check matrix is available, the generator matrix will be added as a CSR sparse matrix.
346346
parity_check_matrix (sparse matrix) - parity check matrix of the code.
347347
Option 3: generator and parity check matrices will be added as sparse matrices of integers.
348348
n_vnodes (int) - number of variable nodes.

commpy/channelcoding/tests/test_ldpc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,5 @@ def test_triang_ldpc_systematic_encode(self):
9898
for i in range(nb_blocks):
9999
decoded_bits[i * block_length:(i + 1) * block_length] = \
100100
ldpc_bp_decode(coded_bits[:, i], param, 'SPA', 10)[0][:block_length]
101-
pass
102101
assert_equal(decoded_bits[:len(message_bits)], message_bits,
103102
'Encoded and decoded message does not match the initial bits without noise')

0 commit comments

Comments
 (0)