diff options
author | Tom Rondeau <trondeau@vt.edu> | 2013-02-24 19:44:25 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2013-02-24 19:44:25 -0500 |
commit | d858f1402b4fb4e302d0b488eec0e4628b62296d (patch) | |
tree | 18f07dbb6c7731089a9c59449559f53b94a81001 /gnuradio-core/src/examples/mp-sched/affinity_set.py | |
parent | 6f8b8e99eb10d8e282232275553a368dc19b1c65 (diff) |
blocks: removing throttle, threshold, stretch from gnuradio-core.
Diffstat (limited to 'gnuradio-core/src/examples/mp-sched/affinity_set.py')
-rwxr-xr-x | gnuradio-core/src/examples/mp-sched/affinity_set.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gnuradio-core/src/examples/mp-sched/affinity_set.py b/gnuradio-core/src/examples/mp-sched/affinity_set.py index 6db632e0fa..c1c1a33932 100755 --- a/gnuradio-core/src/examples/mp-sched/affinity_set.py +++ b/gnuradio-core/src/examples/mp-sched/affinity_set.py @@ -6,6 +6,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 optparse import OptionParser @@ -25,7 +26,7 @@ class affinity_set(gr.top_block): # Blocks ################################################## vec_len = 1 - self.gr_throttle_0 = gr.throttle(gr.sizeof_gr_complex*vec_len, samp_rate) + self.blocks_throttle_0 = blocks.throttle(gr.sizeof_gr_complex*vec_len, samp_rate) self.gr_null_source_0 = gr.null_source(gr.sizeof_gr_complex*vec_len) self.gr_null_sink_0 = gr.null_sink(gr.sizeof_gr_complex*vec_len) self.gr_filt_0 = gr.fir_filter_ccc(1, 40000*[0.2+0.3j,]) @@ -37,8 +38,8 @@ class affinity_set(gr.top_block): ################################################## # Connections ################################################## - self.connect((self.gr_null_source_0, 0), (self.gr_throttle_0, 0)) - self.connect((self.gr_throttle_0, 0), (self.gr_filt_0, 0)) + self.connect((self.gr_null_source_0, 0), (self.blocks_throttle_0, 0)) + self.connect((self.blocks_throttle_0, 0), (self.gr_filt_0, 0)) self.connect((self.gr_filt_0, 0), (self.gr_filt_1, 0)) self.connect((self.gr_filt_1, 0), (self.gr_null_sink_0, 0)) |