Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.

Commit 7480cd8

Browse files
committed
transformation to list is not necessary
1 parent 55c3917 commit 7480cd8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ModulationPy/ModulationPy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ def __ApproxLLR(self, x, noise_var):
142142
LLR = []
143143
for (zero_i, one_i) in zip(zeros, ones):
144144

145-
num = [list(((np.real(x) - np.real(z))**2)
146-
+ ((np.imag(x) - np.imag(z))**2))
145+
num = [((np.real(x) - np.real(z))**2)
146+
+ ((np.imag(x) - np.imag(z))**2)
147147
for z in zero_i]
148-
denum = [list((( np.real(x) - np.real(o))**2)
149-
+ ((np.imag(x) - np.imag(o))**2))
148+
denum = [(( np.real(x) - np.real(o))**2)
149+
+ ((np.imag(x) - np.imag(o))**2)
150150
for o in one_i]
151151

152152
num_post = np.amin(num, axis=0, keepdims=True)

0 commit comments

Comments
 (0)