BaseData¶
-
class
astropy.io.ascii.BaseData[source] [edit on github]¶ Bases:
objectBase table data reader.
Attributes Summary
commentend_linefill_exclude_namesfill_include_namesfill_valuesformatsstart_linewrite_spacer_linesMethods Summary
get_data_lines(lines)Set the data_linesattribute to the lines slice comprising the table data values.get_str_vals()Return a generator that returns a list of column values (as strings) for each data line. masks(cols)Set fill value for each column and then apply that fill value process_lines(lines)Strip out comment lines and blank lines from list of linesstr_vals()convert all values in table to a list of lists of strings write(lines)Attributes Documentation
-
comment= None¶
-
end_line= None¶
-
fill_exclude_names= None¶
-
fill_include_names= None¶
-
fill_values= [(masked, '')]¶
-
formats= {}¶
-
start_line= None¶
-
write_spacer_lines= ['ASCII_TABLE_WRITE_SPACER_LINE']¶
Methods Documentation
-
get_data_lines(lines)[source] [edit on github]¶ Set the
data_linesattribute to the lines slice comprising the table data values.
-
get_str_vals()[source] [edit on github]¶ Return a generator that returns a list of column values (as strings) for each data line.
-
masks(cols)[source] [edit on github]¶ Set fill value for each column and then apply that fill value
In the first step it is evaluated with value from
fill_valuesapplies to which column usingfill_include_namesandfill_exclude_names. In the second step all replacements are done for the appropriate columns.
-
process_lines(lines)[source] [edit on github]¶ Strip out comment lines and blank lines from list of
linesParameters: lines : list
All lines in table
Returns: lines : list
List of lines
-
str_vals()[source] [edit on github]¶ convert all values in table to a list of lists of strings
-
write(lines)[source] [edit on github]¶
-