gavo.formats.texttable module¶
Writing data as plain text.
Currently, we only do TSV. It would probably be nice to support “formatted ASCII as well, though that may be a bit tricky given that we do not really store sane formatting hints for most columns.
- gavo.formats.texttable.jdMapperFactory(colDesc)[source]¶
maps JD, MJD, unix timestamp, and julian year columns to human-readable datetimes.
- gavo.formats.texttable.readTSV(inFile)[source]¶
returns a list of tuples for a tab-separated-values file.
Lines starting with # and lines containing only whitespace are ignored. Whitespace at front and back is stripped.
No checks are done at this point, i.e., the tuples could be of varying lengths.