code: def load_lc_data(filename, indep, dep, indweight=None, mzero=None, dir='./'):
  
      
      if '/' in filename:
          path, filename = os.path.split(filename)
      else:
          # TODO: this needs to change to be directory of the .phoebe file
          path = dir
  
      load_file = os.path.join(path, filename)
      lcdata = np.loadtxt(load_file)
      ncol = len(lcdata[0])
      if dep == 'Magnitude':
          mag = lcdata[:,1]
          flux = 10**(-0.4*(mag-mzero))
          lcdata[:,1] = flux
  
      d = {}
      d['phoebe_lc_time'] = lcdata[:,0]
      d['phoebe_lc_flux'] = lcdata[:,1]
      if indweight=="Standard deviation":
          if ncol >= 3:
              d['phoebe_lc_sigmalc'] = lcdata[:,2]
          else:
              logger.warning('A sigma column was mentioned in the .phoebe file but is not present in the lc data file')
      elif indweight =="Standard weight":
                  if ncol >= 3:
                      sigma = np.sqrt(1/lcdata[:,2])
                      d['phoebe_lc_sigmalc'] = sigma
                      logger.warning('Standard weight has been converted to Standard deviation.')
  
                  else:
                      logger.warning('A sigma column was mentioned in the .phoebe file but is not present in the lc data file')
      else:
          logger.warning('Phoebe 2 currently only supports standard deviaton')
  
  #    dataset.set_value(check_visible=False, **d)
  
      return d
docs: load dictionary with lc data