summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
authorjcorgan2008-08-03 17:15:05 +0000
committerjcorgan2008-08-03 17:15:05 +0000
commitaed878fe0680fa0b3b378ab186d974ab51755d2c (patch)
treecb40656a64cc3c4b7e2b59159b4ff93e37786069 /gnuradio-core
parent49cd48784e826ad641ac81f62eb6fa2ad11b7955 (diff)
downloadgnuradio-aed878fe0680fa0b3b378ab186d974ab51755d2c.tar.gz
gnuradio-aed878fe0680fa0b3b378ab186d974ab51755d2c.tar.bz2
gnuradio-aed878fe0680fa0b3b378ab186d974ab51755d2c.zip
Better fix for race in logpwrfft.py
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9160 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core')
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py b/gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py
index 5f074b197..e96159f1d 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py
@@ -59,7 +59,9 @@ class _logpwrfft_base(gr.hier_block2):
-10*math.log10(window_power/fft_size) # Adjust for windowing loss
-20*math.log10(ref_scale/2)) # Adjust for reference scale
self.connect(self, self._sd, fft, c2mag, self._avg, self._log, self)
- self.set_average(False)
+
+ self._average = average
+ self._avg_alpha = avg_alpha
self.set_avg_alpha(avg_alpha)
self.set_average(average)