Skip to content

Commit f442ca5

Browse files
committed
[Fix] Fixes to validate all tests
1 parent a6c731b commit f442ca5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commpy/channelcoding/convcode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def __init__(self, memory, g_matrix, feedback = None, code_type = 'default'):
152152

153153
output_generator_array[l] = generator_array[0]
154154
if l == 0:
155-
feedback_array = (dec2bitarray(feedback, memory[l]) * shift_register[0:memory[l]]).sum()
155+
feedback_array = (dec2bitarray(feedback, memory[l])[1:] * shift_register[0:memory[l]]).sum()
156156
shift_register[1:memory[l]] = \
157157
shift_register[0:memory[l] - 1]
158158
shift_register[0] = (dec2bitarray(current_input,

commpy/links.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def link_performance(link_model, SNRs, send_max, err_min, send_chunk=None, code_
5959
"""
6060

6161
# Initialization
62-
BERs = np.zeros_like(SNRs)
62+
BERs = np.zeros_like(SNRs, dtype=float)
6363
# Set chunk size and round it to be a multiple of num_bits_symbol*nb_tx to avoid padding
6464
if send_chunk is None:
6565
send_chunk = err_min

0 commit comments

Comments
 (0)