.is_persist_only_final_iteration()

Output configuration method

Description

This .is_persist_only_final_iteration() method allows you to verify if we only persist the results of the final iteration while discarding all results of other iterations.

Signature

.is_persist_only_final_iteration()

Return type

Class bool

Example 1

from planit import *

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

# choose to persist all iterations
persist_final = planit_instance.project.output_configuration.is_persist_only_final_iteration()
if( persist_final)
  # 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