UnitType.<enum>
UnitType types
Description
All individually supported units are provided in this enum. It can be used to for example override the units used in the generated output.
Fields
<enum> Fields | Description | Instance documentation |
---|---|---|
NONE |
Indicates none unit | N/A |
VEH |
Vehicle unit | N/A |
PCU |
Passenger Car Equivalent unit, i.e., a truck (single vehicle) might be 2 pcu | N/A |
KM |
Kilometre unit | N/A |
METER |
Meter unit | N/A |
HOUR |
Hour unit | N/A |
MINUTE |
Minute unit | N/A |
SECOND |
Second unit | N/A |
SRS |
spatial reference system unit | N/A |
Example 1
from planit import *
# prep
planit_instance = Planit()
planit_instance.project.set(TrafficAssignment.TRADITIONAL_STATIC )
planit_instance.project.assignment.activate_output(OutputType.PATH)
# change flow output from default (pcu/h) to vehicle/h
planit_instance.project.assignment.link_configuration.override_output_property_units(OutputProperty.FLOW, [UnitType.VEH], [UnitType.HOUR])
See also
Output Configuration for the options to override the units in the various output type configurations
Source code
Class UnitType
in enums.py