code: def get_cols(self, lines):
          
          re_name_def = re.compile(r'^\s*%\s+(?P<colname>\w+)')
          self.names = []
          for line in lines:
              if not line:  # ignore empty lines in header (windows)
                  continue
              if not line.startswith('%'):  # end of header lines
                  break
              match = re_name_def.search(line)
              if match:
                  self.names.append(match.group('colname'))
  
          if not self.names:
              raise core.InconsistentTableError(
                  'No column names found in Omega header')
  
          self.cols = []  # pylint: disable=attribute-defined-outside-init
          for name in self.names:
              col = core.Column(name=name)
              self.cols.append(col)
docs: Initialize Column objects from a multi-line ASCII header
  
          Parameters
          ----------
          lines : `list`
              List of table lines