commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/01: trellis: fix typos in examples


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/01: trellis: fix typos in examples
Date: Fri, 30 May 2014 17:30:29 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit a8d28ad5338a5044acbbc5c84abb20b7365c9afa
Author: Johnathan Corgan <address@hidden>
Date:   Fri May 30 10:29:05 2014 -0700

    trellis: fix typos in examples
---
 gr-trellis/examples/python/test_cpm.py          | 2 +-
 gr-trellis/examples/python/test_tcm_parallel.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gr-trellis/examples/python/test_cpm.py 
b/gr-trellis/examples/python/test_cpm.py
index 99b75a7..3f5cfc4 100755
--- a/gr-trellis/examples/python/test_cpm.py
+++ b/gr-trellis/examples/python/test_cpm.py
@@ -101,7 +101,7 @@ def run_test(seed,blocksize):
        blocks_add_vxx_0 = blocks.add_vcc(1)
        analog_noise_source_x_0 = analog.noise_source_c(analog.GR_GAUSSIAN, 
(N0/2.0)**0.5, -long(seed))
 
-       blokcs_multiply_vxx_0 = blocks.multiply_vcc(1)
+       blocks_multiply_vxx_0 = blocks.multiply_vcc(1)
        analog_sig_source_x_0 = analog.sig_source_c(Q, analog.GR_COS_WAVE, 
-f0T, 1, 0)
         # only works for N=2, do it manually for N>2...
        filter_fir_filter_xxx_0_0 = filter.fir_filter_ccc(Q, MF[0].conjugate())
diff --git a/gr-trellis/examples/python/test_tcm_parallel.py 
b/gr-trellis/examples/python/test_tcm_parallel.py
index e445689..b30c808 100755
--- a/gr-trellis/examples/python/test_tcm_parallel.py
+++ b/gr-trellis/examples/python/test_tcm_parallel.py
@@ -36,7 +36,7 @@ def run_test 
(f,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed,P):
     # RX
     metrics = 
trellis.metrics_f(f.O(),dimensionality,constellation,digital.TRELLIS_EUCLIDEAN) 
# data preprocessing to generate metrics for Viterbi
     va = trellis.viterbi_s(f,K,0,-1) # Put -1 if the Initial/Final states are 
not set.
-    p2s = block.streams_to_stream(gr.sizeof_short,P) # parallel to serial
+    p2s = blocks.streams_to_stream(gr.sizeof_short,P) # parallel to serial
     fsmi2s=blocks.unpacked_to_packed_ss(bitspersymbol,gr.GR_MSB_FIRST) # pack 
FSM input symbols to shorts
     dst = blocks.check_lfsr_32k_s()
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]