gavo.votable.dec_tabledata module

Coding and decoding from tabledata.

gavo.votable.dec_tabledata.getGlobals(tableDefinition)[source]
gavo.votable.dec_tabledata.getLinesFor(field)[source]

returns a sequence of python source lines to decode TABLEDATA-encoded values for field.

gavo.votable.dec_tabledata.getRowDecoderSource(tableDefinition)[source]

returns the source for a function deserializing rows of tableDefition in TABLEDATA.

tableDefinition is a VOTable.TABLE instance.

gavo.votable.dec_tabledata.tokenizeBitArr(val)[source]

iterates over 0 or 1 tokens in val, discarding everything else.

gavo.votable.dec_tabledata.tokenizeComplexArr(val)[source]

iterates over suitable number literal pairs from val.

gavo.votable.dec_tabledata.tokenizeNormalArr(val)[source]

iterates over all whitespace-separated tokens in val