FixedWidthSplitter¶
-
class
astropy.io.ascii.FixedWidthSplitter[source] [edit on github]¶ Bases:
astropy.io.ascii.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
bookenddelimiterdelimiter_padMethods Summary
__call__(lines)join(vals, widths)Attributes Documentation
-
bookend= False¶
-
delimiter= '|'¶
-
delimiter_pad= ''¶
Methods Documentation
-
__call__(lines)[source] [edit on github]¶
-
join(vals, widths)[source] [edit on github]¶
-