flowy/print_hdf_in_step.py

19 lines
475 B
Python
Raw Permalink Normal View History

2010-11-05 17:57:01 +00:00
#!/usr/bin/python
from record import RecordReader
from pytables import FlowRecordsTable
from itertools import izip
from optparse import OptionParser
if __name__ == '__main__':
usage = 'usage: %prog [options] input files'
p = OptionParser(usage)
opts, arguments = p.parse_args()
mg_readers = [RecordReader(FlowRecordsTable(f)) for f in arguments]
for rec_tuple in izip(*mg_readers):
print ""
for r in rec_tuple:
print r