licel.py

changeset 21
406eb996a9cd
parent 16
1122ee9ef151
child 22
a2355e871b23
equal deleted inserted replaced
20:18a77f8065c1 21:406eb996a9cd
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, 'i4', 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"
63 channel = LicelFileChannel(current_channel_info, raw_data) 63 channel = LicelFileChannel(current_channel_info, raw_data)
64 64
65 channel_name = channel.channel_name 65 channel_name = channel.channel_name

mercurial