Skip to content

Commit

Permalink
use akcelik for toll plaza
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-sijia committed Aug 2, 2024
1 parent d34898c commit 4a8d4b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions tm2py/components/network/create_tod_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def _create_highway_scenarios(self):
"fd13",
"fd14",
"fd99",
"fd70", # separate out toll plaza links
]:
if emmebank.function(f_id):
emmebank.delete_function(f_id)
Expand Down
8 changes: 7 additions & 1 deletion tm2py/components/network/highway/highway_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,17 @@ def _set_vdf_attributes(self, network: EmmeNetwork, time_period: str):
for tp in self.controller.config.time_periods
}
period_capacity_factor = tp_mapping[time_period]
akcelik_vdfs = [3, 4, 5, 7, 8, 10, 11, 12, 13, 14]
akcelik_vdfs = [3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 70]
for link in network.links():
cap_lanehour = capacity_map[link["@capclass"]]
link["@capacity"] = cap_lanehour * period_capacity_factor * link["@lanes"]
link.volume_delay_func = int(link["@ft"])
# separate out toll plaza links
if (
link["@tollbooth"] > 0
and link["@tollbooth"] < self.config.tolls.valuetoll_start_tollbooth_code
):
link.volume_delay_func = 70 # use akcelik for toll plaza
# re-mapping links with type 99 to type 7 "local road of minor importance"
if link.volume_delay_func == 99:
link.volume_delay_func = 7
Expand Down

0 comments on commit 4a8d4b7

Please sign in to comment.