Bases: astropy.io.ascii.core.BaseHeader
Fixed width table header reader.
The key settable class attributes are:
Parameters: |
|
---|
Attributes Summary
position_line |
Methods Summary
write(lines) | |
get_cols(lines) | Initialize the header Column objects from the table lines. |
get_line(lines, index) | |
get_fixedwidth_params(line) | Split line on the delimiter and determine column values and column start and end positions. |
Attributes Documentation
Methods Documentation
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. This list only includes the actual requested columns after filtering by the include_names and exclude_names attributes. See self.names for the full list.
Parameters: | lines – list of table lines |
---|---|
Returns: | None |
Split line on the delimiter and determine column values and column start and end positions. This might include null columns with zero length (e.g. for header row = "| col1 || col2 | col3 |" or header2_row = "----- ------- -----"). The null columns are stripped out. Returns the values between delimiters and the corresponding start and end positions.
Parameters: | line – input line |
---|---|
Returns: | (vals, starts, ends) |