Skip to content

Commit c938681

Browse files
committed
Typos
1 parent e78beea commit c938681

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

commpy/links.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def link_performance(link_model, SNRs, send_max, err_min, send_chunk=None, code_
4242
link_performance send bits until it reach err_min errors (see also send_max).
4343
4444
send_chunk : int
45-
Number of bits to be send at each iteration.
45+
Number of bits to be send at each iteration. This is also the frame length of the decoder if available
46+
so it should be large enough regarding the code type.
4647
*Default*: send_chunck = err_min
4748
4849
code_rate : float in (0,1]

commpy/modulation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@
2222
from itertools import product
2323

2424
import matplotlib.pyplot as plt
25-
from commpy.utilities import bitarray2dec, dec2bitarray
2625
from numpy import arange, array, zeros, pi, cos, sin, sqrt, log2, argmin, \
2726
hstack, repeat, tile, dot, shape, concatenate, exp, \
2827
log, vectorize, empty, eye, kron, inf
2928
from numpy.fft import fft, ifft
3029
from numpy.linalg import qr, norm
3130

31+
from commpy.utilities import bitarray2dec, dec2bitarray
32+
3233
__all__ = ['PSKModem', 'QAMModem', 'ofdm_tx', 'ofdm_rx', 'mimo_ml', 'kbest', 'bit_lvl_repr', 'max_log_approx']
3334

3435

@@ -340,7 +341,7 @@ def kbest(y, h, constellation, K, noise_var=0, output_type='hard', demode=None):
340341
if output_type == 'hard':
341342
return X[:, 0]
342343
elif output_type == 'soft':
343-
return max_log_approx(y, h, noise_var, X, demode)
344+
return max_log_approx(y, h, noise_var, X[:, :nb_can], demode)
344345
else:
345346
raise ValueError('output_type must be "hard" or "soft"')
346347

0 commit comments

Comments
 (0)