summaryrefslogtreecommitdiff
path: root/gr-filter/examples/decimate.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-filter/examples/decimate.py')
-rw-r--r--gr-filter/examples/decimate.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-filter/examples/decimate.py b/gr-filter/examples/decimate.py
index 99ababaa4d..8e2f3c7c36 100644
--- a/gr-filter/examples/decimate.py
+++ b/gr-filter/examples/decimate.py
@@ -11,6 +11,7 @@
from gnuradio import gr
from gnuradio import blocks
from gnuradio import filter
+from gnuradio.fft import window
import sys, time
import numpy
@@ -40,7 +41,7 @@ class pfb_top_block(gr.top_block):
self._taps = filter.firdes.low_pass_2(1, self._fs,
200, 150,
attenuation_dB=120,
- window=filter.firdes.WIN_BLACKMAN_hARRIS)
+ window=window.WIN_BLACKMAN_hARRIS)
# Calculate the number of taps per channel for our own information
tpc = numpy.ceil(float(len(self._taps)) / float(self._decim))