code: def _read_pklc(lcfile):
      '''
      This just reads a light curve pickle file.
  
      Parameters
      ----------
  
      lcfile : str
          The file name of the pickle to open.
  
      Returns
      -------
  
      dict
          This returns an lcdict.
  
      '''
  
      if lcfile.endswith('.gz'):
  
          try:
              with gzip.open(lcfile,'rb') as infd:
                  lcdict = pickle.load(infd)
          except UnicodeDecodeError:
              with gzip.open(lcfile,'rb') as infd:
                  lcdict = pickle.load(infd, encoding='latin1')
  
      else:
  
          try:
              with open(lcfile,'rb') as infd:
                  lcdict = pickle.load(infd)
          except UnicodeDecodeError:
              with open(lcfile,'rb') as infd:
                  lcdict = pickle.load(infd, encoding='latin1')
  
      return lcdicf _read_pklc(lcfile):
      '''
      This just reads a light curve pickle file.
  
      Parameters
      ----------
  
      lcfile : str
          The file name of the pickle to open.
  
      Returns
      -------
  
      dict
          This returns an lcdict.
  
      '''
  
      if lcfile.endswith('.gz'):
  
          try:
              with gzip.open(lcfile,'rb') as infd:
                  lcdict = pickle.load(infd)
          except UnicodeDecodeError:
              with gzip.open(lcfile,'rb') as infd:
                  lcdict = pickle.load(infd, encoding='latin1')
  
      else:
  
          try:
              with open(lcfile,'rb') as infd:
                  lcdict = pickle.load(infd)
          except UnicodeDecodeError:
              with open(lcfile,'rb') as infd:
                  lcdict = pickle.load(infd, encoding='latin1')
  
      return lcdict
docs: This just reads a light curve pickle file.
  
      Parameters
      ----------
  
      lcfile : str
          The file name of the pickle to open.
  
      Returns
      -------
  
      dict
          This returns an lcdict.