summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/python
diff options
context:
space:
mode:
authorJosh Blum2009-10-12 15:44:17 -0700
committerJosh Blum2009-10-12 15:44:17 -0700
commit4fad7bd5a431a113bf66459b8b4c7536671c9c14 (patch)
tree33130d8ce829b098ef54d8afa21a8ff73115b998 /gnuradio-core/src/python
parent5b74bb4d34f381fa8a8af1e1d96ea2d673a8be71 (diff)
downloadgnuradio-4fad7bd5a431a113bf66459b8b4c7536671c9c14.tar.gz
gnuradio-4fad7bd5a431a113bf66459b8b4c7536671c9c14.tar.bz2
gnuradio-4fad7bd5a431a113bf66459b8b4c7536671c9c14.zip
simplfied the code while i was looking at it
Diffstat (limited to 'gnuradio-core/src/python')
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/stream_to_vector_decimator.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/stream_to_vector_decimator.py b/gnuradio-core/src/python/gnuradio/blks2impl/stream_to_vector_decimator.py
index 39c8b5050..8f75729c9 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/stream_to_vector_decimator.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/stream_to_vector_decimator.py
@@ -72,8 +72,7 @@ class stream_to_vector_decimator(gr.hier_block2):
self.one_in_n.set_n(self._decim)
def _update_decimator(self):
- self._decim = max(1, int(round(self._sample_rate/self._vec_len/self._vec_rate)))
- self.one_in_n.set_n(self._decim)
+ self.set_decimation(self._sample_rate/self._vec_len/self._vec_rate)
def decimation(self):
"""