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)
('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)
Comments
Post a Comment