From 4fad7bd5a431a113bf66459b8b4c7536671c9c14 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 12 Oct 2009 15:44:17 -0700 Subject: [PATCH] simplfied the code while i was looking at it --- .../python/gnuradio/blks2impl/stream_to_vector_decimator.py | 3 +-- 1 file changed, 1 insertion(+), 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 39c8b505..8f75729c 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): """ -- 2.30.2