Skip to content

Commit

Permalink
(Bug): Change loop network to ring network in tutorial 8 (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenevinitsky committed Nov 22, 2019
1 parent 27f0cfd commit 44e21a3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 26 deletions.
22 changes: 11 additions & 11 deletions tutorials/tutorial05_networks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -66,7 +66,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -98,7 +98,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -140,7 +140,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -217,7 +217,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -245,7 +245,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -273,7 +273,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -345,7 +345,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -377,7 +377,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -405,7 +405,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -423,7 +423,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand Down
18 changes: 3 additions & 15 deletions tutorials/tutorial08_environments.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -266,28 +266,16 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Round 0, return: 4253.8940561797535\n",
"Average, std return: 4253.8940561797535, 0.0\n",
"Average, std speed: 2.8359293707865048, 0.0\n",
"Closing connection to TraCI and stopping simulation.\n",
"Note, this may print an error message when it closes.\n"
]
}
],
"outputs": [],
"source": [
"from flow.controllers import IDMController, ContinuousRouter\n",
"from flow.core.experiment import Experiment\n",
"from flow.core.params import SumoParams, EnvParams, \\\n",
" InitialConfig, NetParams\n",
"from flow.core.params import VehicleParams\n",
"from flow.networks.ring import LoopNetwork, ADDITIONAL_NET_PARAMS\n",
"from flow.networks.ring import RingNetwork, ADDITIONAL_NET_PARAMS\n",
"\n",
"sumo_params = SumoParams(sim_step=0.1, render=True)\n",
"\n",
Expand Down

0 comments on commit 44e21a3

Please sign in to comment.