Skip to content

Commit

Permalink
PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AboudyKreidieh committed Jun 15, 2020
1 parent 526286a commit 7d7d5b1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
5 changes: 3 additions & 2 deletions examples/exp_configs/non_rl/highway_single.py
Expand Up @@ -33,11 +33,12 @@
"speed_limit": 30,
# number of edges to divide the highway into
"num_edges": 2,
# whether to include a ghost edge
# whether to include a ghost edge. This edge is provided a different speed
# limit.
"use_ghost_edge": True,
# speed limit for the ghost edge
"ghost_speed_limit": END_SPEED,
# length of the cell imposing a boundary
# length of the downstream ghost edge with the reduced speed limit
"boundary_cell_length": 300,
})

Expand Down
8 changes: 4 additions & 4 deletions examples/exp_configs/non_rl/i210_subnetwork.py
Expand Up @@ -35,16 +35,16 @@
# =========================================================================== #

if WANT_DOWNSTREAM_BOUNDARY:
net_template = os.path.join(
NET_TEMPLATE = os.path.join(
config.PROJECT_PATH,
"examples/exp_configs/templates/sumo/i210_with_ghost_cell_with_"
"downstream.xml")
elif WANT_GHOST_CELL:
net_template = os.path.join(
NET_TEMPLATE = os.path.join(
config.PROJECT_PATH,
"examples/exp_configs/templates/sumo/i210_with_ghost_cell.xml")
else:
net_template = os.path.join(
NET_TEMPLATE = os.path.join(
config.PROJECT_PATH,
"examples/exp_configs/templates/sumo/test2.net.xml")

Expand Down Expand Up @@ -130,7 +130,7 @@
# network's documentation or ADDITIONAL_NET_PARAMS component)
net=NetParams(
inflows=inflow,
template=net_template,
template=NET_TEMPLATE,
additional_params={
"on_ramp": ON_RAMP,
"ghost_edge": WANT_GHOST_CELL,
Expand Down
5 changes: 3 additions & 2 deletions flow/networks/highway.py
Expand Up @@ -19,7 +19,7 @@
"use_ghost_edge": False,
# speed limit for the ghost edge
"ghost_speed_limit": 25,
# length of the cell imposing a boundary
# length of the downstream ghost edge with the reduced speed limit
"boundary_cell_length": 500
}

Expand All @@ -39,7 +39,8 @@ class HighwayNetwork(Network):
* **use_ghost_edge** : whether to include a ghost edge. This edge is
provided a different speed limit.
* **ghost_speed_limit** : speed limit for the ghost edge
* **boundary_cell_length** : length of the cell imposing a boundary
* **boundary_cell_length** : length of the downstream ghost edge with the
reduced speed limit
Usage
-----
Expand Down

0 comments on commit 7d7d5b1

Please sign in to comment.