import numpy as np import struct import os ser_pre = np.fromfile('ser.old', dtype='