summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block/apps/howto_square.py
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-02-28 14:38:40 -0500
committerTom Rondeau <trondeau@vt.edu>2013-02-28 14:38:40 -0500
commit9f29e51f2945f355b43f3012da43e37dcd95f6b4 (patch)
treebcc71c8975379c107bb6e94da944292a5ee9a03a /gr-howto-write-a-block/apps/howto_square.py
parent7afefc484137bf0bed7ab9a7ed86017c117d6a35 (diff)
parent2f55d7dfc33e8d990e44c5bbb7c6d2fbdaddd563 (diff)
Merge branch 'next' into perf_monitor
Diffstat (limited to 'gr-howto-write-a-block/apps/howto_square.py')
-rwxr-xr-xgr-howto-write-a-block/apps/howto_square.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-howto-write-a-block/apps/howto_square.py b/gr-howto-write-a-block/apps/howto_square.py
index 0b293b882f..140067b59f 100755
--- a/gr-howto-write-a-block/apps/howto_square.py
+++ b/gr-howto-write-a-block/apps/howto_square.py
@@ -7,6 +7,7 @@
from gnuradio import eng_notation
from gnuradio import gr
+from gnuradio import blocks
from gnuradio.eng_option import eng_option
from gnuradio.gr import firdes
from gnuradio.wxgui import scopesink2
@@ -28,7 +29,7 @@ class howto_square(grc_wxgui.top_block_gui):
##################################################
# Blocks
##################################################
- self.thr = gr.throttle(gr.sizeof_float*1, samp_rate)
+ self.thr = blocks.throttle(gr.sizeof_float*1, samp_rate)
self.src = gr.vector_source_f(([float(n)-50 for n in range(100)]), True, 1)
self.sqr = howto.square_ff()
self.sink2 = scopesink2.scope_sink_f(