def get_trace(f, pts, dt):
    bsize = pts * dt.itemsize  # number of bytes in trace
    return np.frombuffer(f.read(bsize), dt)
Read trace of pts points of dtype dt from Agilent/Varian binary file
dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/fileio/varian.py/get_trace