diff options
author | Ben Reynwar | 2011-02-27 17:03:44 -0700 |
---|---|---|
committer | Ben Reynwar | 2011-02-27 17:03:44 -0700 |
commit | 3a5d052979b8a624f5d290fa2c23486d9d8dc94a (patch) | |
tree | 5f7fded9512acc7395fd1e6c16797277892dc84a /gnuradio-core/src | |
parent | c783c2f959ef53b75a279ce91ce23f68fd2566ae (diff) | |
download | gnuradio-3a5d052979b8a624f5d290fa2c23486d9d8dc94a.tar.gz gnuradio-3a5d052979b8a624f5d290fa2c23486d9d8dc94a.tar.bz2 gnuradio-3a5d052979b8a624f5d290fa2c23486d9d8dc94a.zip |
Minor bug fixes (from last two commits)
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r-- | gnuradio-core/src/lib/swig/gnuradio.i | 2 | ||||
-rw-r--r-- | gnuradio-core/src/python/gnuradio/gr/qa_constellation_receiver.py | 14 |
2 files changed, 2 insertions, 14 deletions
diff --git a/gnuradio-core/src/lib/swig/gnuradio.i b/gnuradio-core/src/lib/swig/gnuradio.i index ba8357c40..1856d5007 100644 --- a/gnuradio-core/src/lib/swig/gnuradio.i +++ b/gnuradio-core/src/lib/swig/gnuradio.i @@ -35,7 +35,7 @@ #include <complex> %} -// %feature("autodoc","1"); +%feature("autodoc","1"); #ifdef SWIGGUILE // Export constants and enums as scheme variables, not functions. diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_constellation_receiver.py b/gnuradio-core/src/python/gnuradio/gr/qa_constellation_receiver.py index 8d7719739..544c84cd4 100644 --- a/gnuradio-core/src/python/gnuradio/gr/qa_constellation_receiver.py +++ b/gnuradio-core/src/python/gnuradio/gr/qa_constellation_receiver.py @@ -94,20 +94,8 @@ class test_constellation_receiver (gr_unittest.TestCase): d2 = data[:int(len(data)*self.ignore_fraction)] correct, overlap, offset, indices = alignment.align_sequences( d1, d2, indices=self.indices) - print(constellation, constellation.arity(), differential, correct, overlap, offset) self.assertTrue(correct > REQ_CORRECT) - def single(self): - constellation = blks2.psk_constellation(64, mod_codes.NO_CODE) - tb = rec_test_tb(constellation, True, DATA_LENGTH) - tb.run() - data = tb.dst.data() - d1 = tb.src_data[:int(len(tb.src_data)*self.ignore_fraction)] - d2 = data[:int(len(data)*self.ignore_fraction)] - seed = random.randint(0, 256) - correct, overlap, offset, indices = alignment.align_sequences(d1, d2, seed=seed) - print(constellation, constellation.arity(), correct, overlap, offset) - class rec_test_tb (gr.top_block): """ @@ -134,7 +122,7 @@ class rec_test_tb (gr.top_block): # Channel channel = gr.channel_model(NOISE_VOLTAGE, FREQUENCY_OFFSET, TIMING_OFFSET) # Receiver Blocks - demod = blks2.generic_demod(constellation, differential=differential, log=True, + demod = blks2.generic_demod(constellation, differential=differential, freq_alpha=FREQ_ALPHA, phase_alpha=PHASE_ALPHA) self.dst = gr.vector_sink_b() |