FixedWidthSplitter¶
- class astropy.io.ascii.FixedWidthSplitter[source]¶
Bases:
BaseSplitterSplit line based on fixed start and end positions for each
colinself.cols.This class requires that the Header class will have defined
col.startandcol.endfor each column. The reference to theheader.colsgets put in the splitter object by the base Reader.read() function just in time for splitting data lines by adataobject.Note that the
startandendpositions 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_linessince 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