'Initialize the header Column objects from the table ``lines``.
Based on the previously set Header attributes find or create the column names.
Sets ``self.cols`` with the list of Columns.
Parameters
lines : list
List of table lines'

def get_cols(self, lines):

    start_line = _get_line_index(self.start_line, self.process_lines(lines))
    if (start_line is None):
        try:
            first_data_vals = next(self.data.get_str_vals())
        except StopIteration:
            raise InconsistentTableError('No    data    lines    found    so    cannot    autogenerate    column    names')
        n_data_cols = len(first_data_vals)
        self.names = [self.auto_format.format(i) for i in range(1, (n_data_cols + 1))]
    else:
        for (i, line) in enumerate(self.process_lines(lines)):
            if (i == start_line):
                break
        else:
            raise ValueError('No    header    line    found    in    table')
        self.names = next(self.splitter([line]))
    self._set_cols_from_names()
