FixedWidthSplitter¶
- class astropy.io.ascii.FixedWidthSplitter[source]¶
Bases:
BaseSplitter
Split line based on fixed start and end positions for each
col
inself.cols
.This class requires that the Header class will have defined
col.start
andcol.end
for each column. The reference to theheader.cols
gets put in the splitter object by the base Reader.read() function just in time for splitting data lines by adata
object.Note that the
start
andend
positions are defined in the pythonic style so line[start:end] is the desired substring for a column. This splitter class does not have a hook forprocess_lines
since that is generally not useful for fixed-width input.Attributes Summary
one-character string used to separate fields
Methods Summary
__call__
(lines)Call self as a function.
join
(vals, widths)Attributes Documentation
- bookend = False¶
- delimiter = '|'¶
one-character string used to separate fields
- delimiter_pad = ''¶
Methods Documentation