code: def run_all():
      
      DATA_DIR = "/home/annaho/TheCannon/code/apogee_lamost/xcalib_4labels"
      dates = os.listdir("/home/share/LAMOST/DR2/DR2_release")
      dates = np.array(dates)
      dates = np.delete(dates, np.where(dates=='.directory')[0][0])
      dates = np.delete(dates, np.where(dates=='all_folders.list')[0][0])
      dates = np.delete(dates, np.where(dates=='dr2.lis')[0][0])
  
      for date in dates:
          if glob.glob("*%s*.txt" %date):
              print("%s done" %date)
          else:
              print("running %s" %date)
              run_one_date(date)
docs: Load the data that we're using to search for Li-rich giants.
      Store it in dataset and model objects.