.add(+)
Path output configuration method
Description
The .add(+) method, allows you to add output properties to the path results, i.e., adding a new column to each path result row with the indicated result type outlined by the output property.
Not all output properties are available in combination with path results. For a list of compatible output properties see the OutputProperty.<enum> documentation
Signature
.add(output_property)
with
Parameter | Type | Unit | Compulsory | Description |
---|---|---|---|---|
output_property | OutputProperty.<enum> | - | YES | Choice of output property to add |
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)
# complement the external ids (of the input) of zones with the internal ids in PLANit in the path results
planit_instance.assignment.path_configuration.add(OutputProperty.ORIGIN_ZONE_ID)
planit_instance.assignment.path_configuration.add(OutputProperty.DESTINATION_ZONE_ID)
See also
OutputProperty.<enum> for the available output property enums and their compatibility
Source code
Class PathOutputTypeConfigurationWrapper
in wrappers.py
Last modified January 1, 0001