diff options
author | jcorgan | 2007-11-27 17:12:14 +0000 |
---|---|---|
committer | jcorgan | 2007-11-27 17:12:14 +0000 |
commit | 8e87bb89b6d80cc63c2474c333ab305bdcd99be3 (patch) | |
tree | 41c1f31b5c08ec60f964eeefbbc3831d34ad68b0 | |
parent | a81ac5a7bc4e77cf8c8212002e98be79f82acebf (diff) | |
download | gnuradio-8e87bb89b6d80cc63c2474c333ab305bdcd99be3.tar.gz gnuradio-8e87bb89b6d80cc63c2474c333ab305bdcd99be3.tar.bz2 gnuradio-8e87bb89b6d80cc63c2474c333ab305bdcd99be3.zip |
Convert missed script in digital examples to top_block code.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7039 221aa14e-8319-0410-a670-987f0aec2ac5
-rwxr-xr-x | gnuradio-examples/python/digital/gen_whitener.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gnuradio-examples/python/digital/gen_whitener.py b/gnuradio-examples/python/digital/gen_whitener.py index 93aea2b82..9a81e4eaa 100755 --- a/gnuradio-examples/python/digital/gen_whitener.py +++ b/gnuradio-examples/python/digital/gen_whitener.py @@ -5,10 +5,10 @@ from gnuradio.eng_option import eng_option 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 @@ class my_graph(gr.flow_graph): 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 |