Skip to content

Commit

Permalink
Update quickstart notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
sjuhel committed Apr 16, 2024
1 parent 903cfec commit 96b24f3
Showing 1 changed file with 13 additions and 21 deletions.
34 changes: 13 additions & 21 deletions docs/source/notebooks/boario-quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 1,
"id": "dc3e74db-72e0-4dde-bac2-4e6be2d61885",
"metadata": {},
"outputs": [],
Expand All @@ -46,7 +46,7 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": null,
"id": "d05964f3-46c6-4a18-ace2-1245b387dfdf",
"metadata": {},
"outputs": [],
Expand All @@ -67,7 +67,7 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": 3,
"id": "e8cb2f4a-90db-45c2-a843-2584b933c67a",
"metadata": {},
"outputs": [],
Expand All @@ -86,7 +86,7 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": 4,
"id": "dbbaf28c-1395-40b9-8827-b4a67719d530",
"metadata": {},
"outputs": [],
Expand All @@ -112,7 +112,7 @@
},
{
"cell_type": "code",
"execution_count": 27,
"execution_count": 5,
"id": "05fd6465-4f25-41a2-9ef6-b87089b4ea2e",
"metadata": {},
"outputs": [],
Expand All @@ -132,7 +132,7 @@
},
{
"cell_type": "code",
"execution_count": 28,
"execution_count": 6,
"id": "e1039d30-5394-49fb-8755-fb830192f947",
"metadata": {},
"outputs": [],
Expand All @@ -158,11 +158,11 @@
"source": [
"Here we define an event happening in region ``reg1`` impacting the productive capital of the ``manufactoring``[^note-1] and ``mining`` sectors. The impact is distributed among the two sectors proportional to their participation to ``reg1``'s GDP. \n",
"\n",
"The entire impact is translated into a reconstruction demand, handled by the ``construction`` (55%) and ``manufactoring`` (45%) sectors. This reconstruction has a characteristic time of 90 unit steps.\n",
"Here the entire impact is translated into a reconstruction demand, handled by the ``construction`` (55%) and ``manufactoring`` (45%) sectors. This reconstruction has a characteristic time of 90 unit steps.\n",
"\n",
"See [Defining events](../tutorials/boario-events.rst), for more in depth explanation on how to define events.\n",
"There are different types of Event subclasses implented in BoARIO, each with there specificities, to allow the modeling of different types of shocks. See [Defining events](../tutorials/boario-events.rst), for more in depth explanation on how to define events.\n",
"\n",
"[^note-1]: There is a typo in the sector's name in pymrio, not in our code."
"[^note-1]: This typo in the \"manufacturing\" sector's name comes from pymrio."
]
},
{
Expand All @@ -175,7 +175,7 @@
},
{
"cell_type": "code",
"execution_count": 29,
"execution_count": 7,
"id": "ba833cbb-5ed0-46c9-bdc5-6cfc38eb919d",
"metadata": {},
"outputs": [],
Expand All @@ -194,7 +194,7 @@
},
{
"cell_type": "code",
"execution_count": 30,
"execution_count": 8,
"id": "e99a88ca-9c0e-4d73-b513-3e0af572a35d",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -224,7 +224,7 @@
},
{
"cell_type": "code",
"execution_count": 32,
"execution_count": 9,
"id": "2c2add52-72fb-45d7-9f7b-ade044acc0f9",
"metadata": {},
"outputs": [
Expand All @@ -234,7 +234,7 @@
"<Axes: xlabel='step'>"
]
},
"execution_count": 32,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
},
Expand All @@ -258,14 +258,6 @@
"\n",
"df.loc[:, (\"reg1\", slice(None))].plot()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4c58e3e9-b433-4d41-8c96-d0928b231fb2",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 96b24f3

Please sign in to comment.