.set_persist_only_final_iteration(+)

Output configuration method

Description

This .set_persist_only_final_iteration(+) method allows you to only persist the results of the final iteration while discarding all results of other iterations.

Signature

.set_persist_only_final_iteration(only_final_iteration)

with

Parameter Type Unit Compulsory Default Description
only_final_iteration bool - yes PERIST_ONLY_FINAL_ITERATION Choice whether or not to persist only final iteration

Return type

None

Example 1

from planit import *

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

# choose to persist all iterations
planit_instance.project.output_configuration.set_persist_only_final_iteration(False)


# do other stuff 

See also

OutputType.<enum> for the available output type enums
Traffic Assignment to see how to activate output types via the various assignment implementations

Source code

Class OutputConfigurationWrapper in projectwrappers.py

Last modified January 1, 0001