diff options
author | Alick Zhao | 2012-11-02 09:34:39 -0700 |
---|---|---|
committer | Johnathan Corgan | 2012-11-02 09:37:42 -0700 |
commit | c5436ca8ddab5fa77a585c8f00743bb85a93c59a (patch) | |
tree | 7e6916f6bf33374d8384611aeaf074c0c3afef18 /gr-digital | |
parent | 984a42a48f6872a4bdeb599786bf73097f4c0c68 (diff) | |
download | gnuradio-c5436ca8ddab5fa77a585c8f00743bb85a93c59a.tar.gz gnuradio-c5436ca8ddab5fa77a585c8f00743bb85a93c59a.tar.bz2 gnuradio-c5436ca8ddab5fa77a585c8f00743bb85a93c59a.zip |
Fixes other uses of channel model to always have negative or zero
seed for noise source, matching the documentation update in 0d6871b3.
Diffstat (limited to 'gr-digital')
-rwxr-xr-x | gr-digital/examples/narrowband/benchmark_add_channel.py | 2 | ||||
-rwxr-xr-x | gr-digital/examples/ofdm/benchmark_add_channel.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gr-digital/examples/narrowband/benchmark_add_channel.py b/gr-digital/examples/narrowband/benchmark_add_channel.py index 841833a08..c69ee60b0 100755 --- a/gr-digital/examples/narrowband/benchmark_add_channel.py +++ b/gr-digital/examples/narrowband/benchmark_add_channel.py @@ -44,7 +44,7 @@ class my_top_block(gr.top_block): self.src = gr.file_source(gr.sizeof_gr_complex, ifile) #self.throttle = gr.throttle(gr.sizeof_gr_complex, options.sample_rate) self.channel = gr.channel_model(noise_voltage, frequency_offset, - time_offset, noise_seed=random.randint(0,100000)) + time_offset, noise_seed=-random.randint(0,100000)) self.phase = gr.multiply_const_cc(complex(math.cos(phase_offset), math.sin(phase_offset))) self.snk = gr.file_sink(gr.sizeof_gr_complex, ofile) diff --git a/gr-digital/examples/ofdm/benchmark_add_channel.py b/gr-digital/examples/ofdm/benchmark_add_channel.py index 01776d209..cbdd990f4 100755 --- a/gr-digital/examples/ofdm/benchmark_add_channel.py +++ b/gr-digital/examples/ofdm/benchmark_add_channel.py @@ -46,7 +46,7 @@ class my_top_block(gr.top_block): self.src = gr.file_source(gr.sizeof_gr_complex, ifile) #self.throttle = gr.throttle(gr.sizeof_gr_complex, options.sample_rate) self.channel = gr.channel_model(noise_voltage, frequency_offset, - time_offset, noise_seed=random.randint(0,100000)) + time_offset, noise_seed=-random.randint(0,100000)) self.phase = gr.multiply_const_cc(complex(math.cos(phase_offset), math.sin(phase_offset))) self.snk = gr.file_sink(gr.sizeof_gr_complex, ofile) |