.deactivate(+)

PLANit 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.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.deactivate(TrafficAssignment.PLANIT_IO)

# likely you want to activate another output type instead
planit_instance.activate(TrafficAssignment.MEMORY)

See also

OutputFormatter.<enum> for supported output formatters
PLANit.activate(+) for activating output formatters

Source code

Class PLANit in PLANit.py