From 482c0505920258680ba1105e272efcc95cbdb16d Mon Sep 17 00:00:00 2001 From: trondeau Date: Fri, 31 Jul 2009 01:47:20 +0000 Subject: Fixing bug in setting SNR git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11523 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-examples/python/digital/benchmark_qt_loopback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnuradio-examples/python/digital') diff --git a/gnuradio-examples/python/digital/benchmark_qt_loopback.py b/gnuradio-examples/python/digital/benchmark_qt_loopback.py index cd77f0748..e43bffa26 100755 --- a/gnuradio-examples/python/digital/benchmark_qt_loopback.py +++ b/gnuradio-examples/python/digital/benchmark_qt_loopback.py @@ -279,7 +279,7 @@ class my_top_block(gr.top_block): def get_noise_voltage(self, SNR): snr = 10.0**(SNR/10.0) power_in_signal = abs(self._tx_amplitude)**2 - noise_power = power_in_signal/SNR + noise_power = power_in_signal/snr noise_voltage = math.sqrt(noise_power) return noise_voltage -- cgit