licel.py

changeset 16
1122ee9ef151
parent 2
b11082bfcb4a
child 21
406eb996a9cd
equal deleted inserted replaced
15:a0b073b1f684 16:1122ee9ef151
52 # Check the complete header is read 52 # Check the complete header is read
53 a = f.readline() 53 a = f.readline()
54 54
55 # Import the data 55 # Import the data
56 for current_channel_info in channel_info: 56 for current_channel_info in channel_info:
57 raw_data = np.fromfile(f, 'l', int(current_channel_info['DataPoints'])) 57 raw_data = np.fromfile(f, 'i4', int(current_channel_info['DataPoints']))
58 a = np.fromfile(f, 'b', 1) 58 a = np.fromfile(f, 'b', 1)
59 b = np.fromfile(f, 'b', 1) 59 b = np.fromfile(f, 'b', 1)
60 60
61 if (a[0] != 13) | (b[0] != 10): 61 if (a[0] != 13) | (b[0] != 10):
62 print "Warning: No end of line found after record. File could be corrupt" 62 print "Warning: No end of line found after record. File could be corrupt"

mercurial