diff options
author | Josh Blum <josh@joshknows.com> | 2009-10-12 15:44:17 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2009-10-12 15:44:17 -0700 |
commit | 4fad7bd5a431a113bf66459b8b4c7536671c9c14 (patch) | |
tree | 33130d8ce829b098ef54d8afa21a8ff73115b998 | |
parent | 5b74bb4d34f381fa8a8af1e1d96ea2d673a8be71 (diff) |
simplfied the code while i was looking at it
-rw-r--r-- | gnuradio-core/src/python/gnuradio/blks2impl/stream_to_vector_decimator.py | 3 |
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 39c8b50502..8f75729c91 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): """ |