OutputFormatter.<enum>
OutputFormatter types
Description
Class exposing supported output formatters as Enums.
Fields
<enum> Fields | Description | Instance documentation |
---|---|---|
PLANIT_IO |
PLANit’s native output format | Default Output Formatter |
MEMORY |
Stores results in memory | Memory Output Formatter |
Example 1
from planit import *
# prep
planit_instance = Planit()
planit_instance.project.set(TrafficAssignment.TRADITIONAL_STATIC)
# Activate memory based output formatting on top of the default persistence
planit_instance.project.activate(OutputFormatter.MEMORY)
# access memory based output formatter instance to configure further
planit_instance.project.memory.<some method>
Example 2
from planit import *
# prep
planit_instance = Planit()
planit_instance.project.set(TrafficAssignment.TRADITIONAL_STATIC )
# Without any explicit activation of any output formatter, planit projects automatically
# activate PLAN_IO upon the creation of any traffic assignment type. No explicit action needed
# The output formatter is then accessible via the x.output property
planit_instance.project.output.<some method>
See also
planit.project.activate(+)
planit.project.deactivate(+)
Source code
OutputFormatter
in enums.py