commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r11523 - gnuradio/trunk/gnuradio-examples/python/digit


From: trondeau
Subject: [Commit-gnuradio] r11523 - gnuradio/trunk/gnuradio-examples/python/digital
Date: Thu, 30 Jul 2009 19:47:20 -0600 (MDT)

Author: trondeau
Date: 2009-07-30 19:47:20 -0600 (Thu, 30 Jul 2009)
New Revision: 11523

Modified:
   gnuradio/trunk/gnuradio-examples/python/digital/benchmark_qt_loopback.py
Log:
Fixing bug in setting SNR

Modified: 
gnuradio/trunk/gnuradio-examples/python/digital/benchmark_qt_loopback.py
===================================================================
--- gnuradio/trunk/gnuradio-examples/python/digital/benchmark_qt_loopback.py    
2009-07-31 00:59:44 UTC (rev 11522)
+++ gnuradio/trunk/gnuradio-examples/python/digital/benchmark_qt_loopback.py    
2009-07-31 01:47:20 UTC (rev 11523)
@@ -279,7 +279,7 @@
     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
 





reply via email to

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