From 2c92b15a3449799839fab03c3835b8dac244b8f6 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Sun, 4 Aug 2013 20:10:35 -0700 Subject: [PATCH] Broke the file source. Fixed. --- python/radio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/radio.py b/python/radio.py index 6bab259..02b5ac0 100644 --- a/python/radio.py +++ b/python/radio.py @@ -23,7 +23,7 @@ # You pass it options, it gives you data. # It uses the pubsub interface to allow clients to subscribe to its data feeds. -from gnuradio import gr, gru, eng_notation, filter +from gnuradio import gr, gru, eng_notation, filter, blocks from gnuradio.filter import optfir from gnuradio.eng_option import eng_option from gnuradio.gr.pubsub import pubsub @@ -199,7 +199,7 @@ class modes_radio (gr.top_block, pubsub): self._u = gr.udp_source(gr.sizeof_gr_complex, ip, int(port)) print "Using UDP source %s:%s" % (ip, port) else: - self._u = gr.file_source(gr.sizeof_gr_complex, options.source) + self._u = blocks.file_source(gr.sizeof_gr_complex, options.source) print "Using file source %s" % options.source print "Rate is %i" % (options.rate,)