diff options
author | Tom Rondeau | 2012-12-14 16:10:30 -0500 |
---|---|---|
committer | Tom Rondeau | 2012-12-14 17:11:40 -0500 |
commit | 461ece56b36a44b2405282630157739c7f9a26ba (patch) | |
tree | c5b1a484a43a35324e1ea1beae7652aa80da5d83 /gr-utils/src/python/gr_read_file_metadata | |
parent | 8e8ed231cd2469e1a39c5ae6af23ac9b29264af7 (diff) | |
download | gnuradio-461ece56b36a44b2405282630157739c7f9a26ba.tar.gz gnuradio-461ece56b36a44b2405282630157739c7f9a26ba.tar.bz2 gnuradio-461ece56b36a44b2405282630157739c7f9a26ba.zip |
blocks: moving file metadata sink/source to gr-blocks.
Diffstat (limited to 'gr-utils/src/python/gr_read_file_metadata')
-rw-r--r-- | gr-utils/src/python/gr_read_file_metadata | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-utils/src/python/gr_read_file_metadata b/gr-utils/src/python/gr_read_file_metadata index efbf8d15d..cf0cd5b11 100644 --- a/gr-utils/src/python/gr_read_file_metadata +++ b/gr-utils/src/python/gr_read_file_metadata @@ -23,8 +23,8 @@ import sys from optparse import OptionParser -from gnuradio import gr -from gnuradio import parse_file_metadata +from gruel import pmt +from gnuradio.blocks import parse_file_metadata def main(filename, detached=False): handle = open(filename, "rb") @@ -40,7 +40,7 @@ def main(filename, detached=False): # Convert from string to PMT (should be a dictionary) try: - header = gr.pmt_deserialize_str(header_str) + header = pmt.pmt_deserialize_str(header_str) except RuntimeError: sys.stderr.write("Could not deserialize header: invalid or corrupt data file.\n") sys.exit(1) @@ -54,7 +54,7 @@ def main(filename, detached=False): break try: - extra = gr.pmt_deserialize_str(extra_str) + extra = pmt.pmt_deserialize_str(extra_str) except RuntimeError: sys.stderr.write("Could not deserialize extras: invalid or corrupt data file.\n") sys.exit(1) |