.set_xml_name_extension(+)
Default PLANit Output Formatter method
Description
The .set_xml_name_extension(+) method allows you to overwrite the default extension (DEFAULT_XML_NAME_EXTENSION
) used by the PLANit output formatter for the XML output files of a PLANit traffic assignment run.
The extension includes the ‘.’ of ‘.xml’,
Signature
.set_xml_name_extension(xml_extension)
with
Parameter | Type | Unit | Compulsory | Description |
---|---|---|---|---|
xml_extension |
string |
None |
YES | Alternative extension for .xml files |
Return type
None
Example 1
from planit import *
#prep
plan_it = Planit()
#clarify this is planit xml output with custom extension
plan_it.project.output.set_xml_name_extension("xplanit")
#
# <more configuration>
#
plan_it.project.run()
See also
N/A
Source code
Class PlanItOutputFormatterWrapper
in projectwrappers.py