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, 'l', 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 if (a[0] != 13) | (b[0] != 10): |
61 if (a[0] != 13) | (b[0] != 10): |
61 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" |
62 channel = LicelFileChannel(current_channel_info, raw_data) |
63 channel = LicelFileChannel(current_channel_info, raw_data) |
63 |
64 |
64 channel_name = channel.channel_name |
65 channel_name = channel.channel_name |