.remove_all_properties()

Path output configuration method

Description

The .remove_all_properties() method, will remove all currently registered output properties from the path configuration, including any properties that were initiated by default.

If you decide to remove output properties, ensure that at least one method of unique identification for the path remains in place. If not the assignment will fail.

Signature

.remove_all_properties()

Return type

None

Example 1

from planit import *

# prep
planit_instance = PLANit()
planit_instance.set(TrafficAssignment.TRADITIONAL_STATIC )
planit_instance.assignment.activate_output(OutputType.PATH)


# remove all output properties and then add only the OD ids and path string
planit_instance.assignment.path_configuration.remove_all_properties()
planit_instance.assignment.path_configuration.add(OutputProperty.ORIGIN_ZONE_EXTERNAL_ID)
planit_instance.assignment.path_configuration.add(OutputProperty.DESTINATION_ZONE_EXTERNAL_ID)
planit_instance.assignment.path_configuration.add(OutputProperty.PATH_STRING)

See also

OutputProperty.<enum> for the available output property enums

Source code

Class PathOutputConfigurationWrapper in wrappers.py

Last modified January 1, 0001