.remove(+)
Path output configuration method
Description
The .remove(+) method, allows you to remove output properties from the path results, i.e., removing an existing column from each path result row based on the provided output property.
If you decide to add and remove output properties, ensure that at least one method of unique identification for the path remains in place. If not the assignment will fail.
Not all output properties are available in combination with path results. For a list of compatible output properties see the OutputProperty.<enum> documentation
Signature
.remove(output_property)
with
Parameter | Type | Unit | Compulsory | Description |
---|---|---|---|---|
output_property | OutputProperty.<enum> | - | YES | Choice of output property to remove |
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 the simulation run id from the path results
planit_instance.assignment.path_configuration.remove(OutputProperty.RUN_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