CSVFormat#

class caf.mat.ufm.CSVFormat(value)[source]#

Bases: Enum

Available CSV formats when converting between UFMs and CSV.

Not all format defined are available for conversions in both directions.

Enumerations#

TUBA2

TUBA 2 format is 3 columns without a header row containing the origin zone number, destination zone number and the matrix value. This format excludes any cells which are 0.

TUBA3

TUBA 3 format is a fixed width format with 4 columns starting at the following positions: 0, 9, 17 and 25. The columns include the origin zone, destination zone, matrix level and the matrix value. This format excludes any cells which are 0.

SQUARE

Square matrix with no header row and the first column containing zone name.

Attributes

Attributes Documentation

TUBA2 = 'tuba2'#
TUBA3 = 'tuba3'#
SQUARE = 'square'#