summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py')
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py b/gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py
index e96159f1d4..d10246cfec 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py
@@ -65,6 +65,13 @@ class _logpwrfft_base(gr.hier_block2):
self.set_avg_alpha(avg_alpha)
self.set_average(average)
+ def set_decimation(self, decim):
+ """!
+ Set the decimation on stream decimator.
+ @param decim the new decimation
+ """
+ self._sd.set_decimation(decim)
+
def set_sample_rate(self, sample_rate):
"""!
Set the new sampling rate
@@ -97,6 +104,18 @@ class _logpwrfft_base(gr.hier_block2):
"""
return self._sd.sample_rate()
+ def decimation(self):
+ """!
+ Return the current decimation.
+ """
+ return self._sd.decimation()
+
+ def frame_rate(self):
+ """!
+ Return the current frame rate.
+ """
+ return self._sd.frame_rate()
+
def average(self):
"""!
Return whether or not averaging is being performed.