def getPrefixForLapQuery(taskpath, lapQuery):
  ''' Search among the saved lap params in taskpath for the lap nearest query.

      Returns
      --------
      prefix : string like 'Lap0001.000' that indicates lap for saved parameters.
  '''
  saveLaps = np.loadtxt(os.path.join(taskpath,'laps-saved-params.txt'))
  distances = np.abs(saveLaps - lapQuery)
  bestLap = saveLaps[np.argmin(distances)]
  return makePrefixForLap(bestLap), bestLap
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/ioutil/ModelReader.py/getPrefixForLapQuery/swapped operands of `-`