pam.planner.od
Manages origin-destination data required by the planner module.
Labels
#
Bases: NamedTuple
Data labels for the origin-destination dataset.
OD(data, labels)
#
Holds origin-destination matrices for a number of modes and variables.
PARAMETER | DESCRIPTION |
---|---|
data |
A multi-dimensional numpy array of the origin-destination data. - First dimension: variable (ie travel time, distance, etc) - Second dimension: origin zone - Third dimension: destination zone - Fourth dimension: mode (ie car, bus, etc)
TYPE:
|
labels |
|
Source code in src/pam/planner/od.py
data = data
instance-attribute
#
labels = self.parse_labels(labels)
instance-attribute
#
data_checks()
#
Check the integrity of input data and labels.
Source code in src/pam/planner/od.py
parse_labels(labels)
staticmethod
#
Parse labels as a named tuple.
Source code in src/pam/planner/od.py
ODFactory
#
check(matrices, labels)
staticmethod
#
Source code in src/pam/planner/od.py
from_matrices(matrices)
classmethod
#
Creates an OD instance from a list of ODMatrices.