The formatting module provides classes for formatting simulation/analysis records in different ways: summary, list or table; and in different mark-up formats: currently text or HTML.
copyright: | Copyright 2006-2015 by the Sumatra team, see doc/authors.txt |
---|---|
license: | BSD 2-clause, see LICENSE for details. |
Bases: sumatra.formatting.Formatter
Format the information from a list of Sumatra records as text.
Format a record according to the given mode. mode may be ‘short’, ‘long’ or ‘table’.
Return detailed information about a list of records, as text with a limited column width. Lines that are too long will be wrapped round.
Return a list of record labels, one per line.
Return information about a list of records as text, in a simple tabular format.
Bases: sumatra.formatting.Formatter
Format information about a group of Sumatra records as HTML fragments, to be included in a larger document.
Format a record according to the given mode. mode may be ‘short’, ‘long’ or ‘table’.
Return detailed information about a list of records as an HTML description list.
Return a list of record labels as an HTML unordered list.
Return detailed information about a list of records as an HTML table.
Return a Formatter object of the appropriate type. format may be ‘text, ‘html’ or ‘textdiff’
Bases: sumatra.formatting.Formatter
Format information about the differences between two Sumatra records in text format.
Format a record according to the given mode. mode may be ‘short’, ‘long’ or ‘table’.
Return a detailed description of the differences between two records.
Return a summary of the differences between two records.
Return a DiffFormatter object of the appropriate type. Only text format is currently available.