Author: jcorgan
Date: 2007-11-27 10:12:14 -0700 (Tue, 27 Nov 2007)
New Revision: 7039
Modified:
gnuradio/trunk/gnuradio-examples/python/digital/gen_whitener.py
Log:
Convert missed script in digital examples to top_block code.
Modified: gnuradio/trunk/gnuradio-examples/python/digital/gen_whitener.py
===================================================================
--- gnuradio/trunk/gnuradio-examples/python/digital/gen_whitener.py
2007-11-27 17:00:40 UTC (rev 7038)
+++ gnuradio/trunk/gnuradio-examples/python/digital/gen_whitener.py
2007-11-27 17:12:14 UTC (rev 7039)
@@ -5,10 +5,10 @@
from optparse import OptionParser
import sys
-class my_graph(gr.flow_graph):
+class my_graph(gr.top_block):
def __init__(self):
- gr.flow_graph.__init__(self)
+ gr.top_block.__init__(self)
parser = OptionParser(option_class=eng_option)
(options, args) = parser.parse_args ()
@@ -23,11 +23,11 @@
if __name__ == '__main__':
try:
- fg = my_graph()
- fg.run()
+ tb = my_graph()
+ tb.run()
f = sys.stdout
i = 0
- for s in fg.dst.data():
+ for s in tb.dst.data():
f.write("%3d, " % (s & 0xff,))
f.write("%3d, " % ((s >> 8) & 0xff,))
i = i+2
_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio