.create_project(+)
Planit method
Description
The .create_project(+)
method allows you to create the assignment project. this project allows you to configure and run a traffic assignment.
Signature
.create_project(project_path:str=None)
with
Parameter | Type | Unit | Compulsory | Description |
---|---|---|---|---|
project_path |
String | None |
No | The directory to search for input files, if not provided use current working directory |
Return type
PlanitProject instance
Example 1
from planit import *
# create project using current working directory
planit_instance = Planit()
planit_project = planit_instance.create_project()
# choose traffic assignment type
planit_project.set(TrafficAssignment.TRADITIONAL_STATIC)
# further configuration
planit_project.assignment.<do_something>
# conduct assignment
planit_project.run()
See also
PlanitProject for further configuration options of assignment project
Source code
Class Planit
in Planit.py
Last modified January 1, 0001