BaseInputter

class astropy.io.ascii.core.BaseInputter [edit on github][source]

Bases: object

Get the lines from the table input and return a list of lines. The input table can be one of:

  • File name
  • String (newline separated) with all header and data lines (must have at least 2 lines)
  • File-like object with read() method
  • List of strings

Methods Summary

process_lines(lines) Process lines for subsequent use.
get_lines(table) Get the lines from the table input.

Methods Documentation

process_lines(lines) [edit on github][source]

Process lines for subsequent use. In the default case do nothing. This routine is not generally intended for removing comment lines or stripping whitespace. These are done (if needed) in the header and data line processing.

Override this method if something more has to be done to convert raw input lines to the table rows. For example the ContinuationLinesInputter derived class accounts for continuation characters if a row is split into lines.

get_lines(table) [edit on github][source]

Get the lines from the table input.

Parameters:table – table input
Returns:list of lines

Page Contents