code: def read_calib_file(filepath):
      
      data = {}
  
      with open(filepath, 'r') as f:
          for line in f.readlines():
              key, value = line.split(':', 1)
              # The only non-float values in these files are dates, which
              # we don't care about anyway
              try:
                  data[key] = np.array([float(x) for x in value.split()])
              except ValueError:
                  pass
  
      return data
docs: Read in a calibration file and parse into a dictionary.