9.5.3. aequilibrae.SkimResults

class aequilibrae.SkimResults

Bases: object

Network skimming result holder

from aequilibrae.project import Project
from aequilibrae.paths.results import SkimResults

proj = Project()
proj.load('path/to/project.sqlite')
proj.network.build_graphs()
# Mode c is car in this project
car_graph = proj.network.graphs['c']

# minimize travel time
car_graph.set_graph('free_flow_travel_time')

# Skims travel time and distance
car_graph.set_skimming(['free_flow_travel_time', 'distance'])

res = SkimResults()
res.prepare(car_graph)
res.compute_skims()

res.skims.export('path/to/matrix.aem')
__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__()

Initialize self.

compute_skims()

Computes the skims as set

prepare(graph)

Prepares the object with dimensions corresponding to the graph objects

reset()

Resets object to prepared and pre-computation state

set_cores(cores)

Sets number of cores (threads) to be used in computation

__init__()

Initialize self. See help(type(self)) for accurate signature.