.set_csv_name_extension(+)
Default PLANit Output Formatter method
Description
The .set_csv_name_extension(+) method allows you to overwrite the default extension (DEFAULT_CSV_NAME_EXTENSION
) used by the PLANit output formatter for the CSV output files of a PLANit traffic assignment run.
The extension includes the ‘.’ of ‘.csv’,
Signature
.set_csv_name_extension(csv_extension)
with
Parameter | Type | Unit | Compulsory | Description |
---|---|---|---|---|
csv_extension |
string |
None |
YES | Alternative extension for .csv files |
Return type
None
Example 1
from planit import *
#prep
plan_it = Planit()
# configure to rename csv extension to MS Excel
plan_it.output.set_csv_name_extension(".xls")
#
# <more configuration>
#
plan_it.project.run()
See also
N/A
Source code
Class PlanItOutputFormatterWrapper
in projectwrappers.py