.deactivate(+)
PlanitProject method
Description
This .deactivate(+) method allows you to de-activate types of output for your assignment given some output formatter enum that you provide. Only when an output formatter is activated, de-activating it will result in a de-activation, otherwise the call is imsply ignored.
Signature
.deactivate(output_formatter_type)
with
Parameter | Type | Unit | Compulsory | Description |
---|---|---|---|---|
output_formatter_type | OutputFormatter.<enum> |
None |
YES | Type of output formatter to de-activate |
Return type
None
Examples
from planit import *
# prep
planit_instance = Planit()
planit_instance.project.set(TrafficAssignment.TRADITIONAL_STATIC)
# without any explicit activation of any output formatter, PLANit will automatically
# activate PLANIT_IO upon the creation of any traffic assignment type. No explicit action needed
# so, you can deactivate it as follows, resulting in no output for your run
planit_instance.project.deactivate(OutputFormatter.PLANIT_IO)
# likely you want to activate another output type instead
planit_instance.project.activate(OutputFormatter.MEMORY)
See also
OutputFormatter.<enum> for supported output formatters
.activate(+) for activating output formatters
Source code
Class PlanitProject
in project.py