aequilibrae.paths.sub_area#
Classes
|
- class aequilibrae.paths.sub_area.SubAreaAnalysis(graph: Graph, subarea: GeoDataFrame, demand: DataFrame | AequilibraeMatrix, project=None)[source]#
- post_process(demand_cols=None, keep_original_ods: bool = False)[source]#
Apply the necessary post processing to the route choice assignment select link results.
- Arguments:
demand_cols (
[list[str]]
, optional): If provided, only construct the sub-area matrix for these demand matrices.keep_original_ods (
bool
, optional): If provided, the original origin and destination IDs for the demand will be kept. This will create a significantly larger demand matrix but is more flexible.- Returns:
sub_area_demand (
pd.DataFrame
): A DataFrame representing the sub-area demand matrix.