nev_packet = pylab.dtype([ ('nstx', 'h'), ('npkt_id', 'h'), ('npkt_data_size', 'h'), ('timestamp', 'Q'), ('eventid', 'h'), ('nttl', 'H'), ('ncrc', 'h'), ('ndummy1', 'h'), ('ndummy2', 'h'), ('dnExtra', '8i'), ('eventstring', '128c') ]) data = pylab.fromfile(fin, dtype=nev_packet, count=-1)
I've moved to kaushikghose.wordpress.com