General

General Output Configuration implementation

Description

This top-level output configuration allows you to configure general options regarding your traffic assignment run

Defaults

Name Value Type Unit
PERSIST_ONLY_FINAL_ITERATION True bool None
PERSIST_ZERO_FLOW False bool None

Methods

Output configuration exposes the following methods.

Name Description
.set_persist_only_final_iteration(+) Choose to only persist results for the final iteration yes or no
.is_persist_only_final_iteration() Find out if only results for the final iteration are persisted yes or no
.set_persist_zero_flow(+) Choose to persist zero flow results yes or no
.is_persist_zero_flow() Find out if zero flow results are persisted yes or no

Properties

Output configuration does not expose properties (yet)

Example 1

from planit import *

# prep
planit_instance = Planit()
planit_instance.project.set(TrafficAssignment.TRADITIONAL_STATIC )

# choose to only persist the results of the last iteration
planit_instance.output_configuration.project.set_persist_only_final_iteration(True)
# find out if we persist all iterations
all_persisted = not planit_instance.project.output_configuration.is_persist_only_final_iteration()

# do other stuff 

See also

N/A

Source code

Class OutputTypeConfigurationWrapper in projectwrappers.py


.is_persist_only_final_iteration()

Output configuration method

.is_persist_zero_flow()

Output configuration method

.set_persist_only_final_iteration(+)

Output configuration method

.set_persist_zero_flow(+)

Output configuration method

Last modified January 1, 0001