.set_output_directory(+)

Default PLANit Output Formatter method

Description

The .set_output_directory(+) method provides you with an the option to overwrite the default output directory set by the PLANit output formatter for both the CSV (DEFAULT_CSV_OUTPUT_DIRECTORY) and XML (DEFAULT_XML_OUTPUT_DIRECTORY)) output files of a PLANit traffic assignment run.

Make sure that the provided output directory is a path where you have write access.

Signature

.set_output_directory(path_to_dir)

with

Parameter Type Unit Compulsory Description
path_to_dir string None YES Valid path with write access for user

Return type

None

Example 1

from planit import *

#all input and output available in public user directory (windows)
io_dir = "c:\users\public\planit\"

#collect input
plan_it = Planit(io_dir)
# configure to persist output in same directory
plan_it.project.output.set_output_directory(io_dir)

#
# <more configuration>
#

#run simulation
plan_it.project.run()

See also

N/A

Source code

Class PlanItOutputFormatterWrapper in projectwrappers.py