This commit is contained in:
Pierre Guillod 2024-09-08 11:16:01 +02:00
parent 1b17bced17
commit 2c8022e789
83 changed files with 168649 additions and 933720 deletions

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 304 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 1.4 MiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

After

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 288 KiB

View file

@ -16,7 +16,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"id": "e2abc871-bf82-4cf6-993e-cd904c7e7468",
"metadata": {
"editable": true,
@ -43,7 +43,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"id": "529de80c-dd7f-45eb-b3c1-753b33d2bdb7",
"metadata": {
"editable": true,
@ -52,7 +52,23 @@
},
"tags": []
},
"outputs": [],
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "1b0e443e40374de8adfd2915d57fca0b",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(VBox(children=(Dropdown(description='Région', options=(('Ville de Genève', 'geneva'), ('Région …"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"places = {\n",
" \"geneva\": {\"shorthand\": \"geneva\", \"friendly\": \"Ville de Genève\", \"label\": \"Geneva, Switzerland\", \"cars\": 44_000, \"node\": 2809410},\n",
@ -165,7 +181,7 @@
" \n",
" counter = 0\n",
" nodes = [place[\"node\"]];\n",
" shoteach = vehicles / 10;\n",
" shoteach = vehicles / 5;\n",
" \n",
" edges = edges_reset.copy()\n",
" \n",
@ -225,7 +241,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 8,
"id": "f4440649-731e-421e-b43d-17576bb8ad3f",
"metadata": {
"editable": true,
@ -234,11 +250,27 @@
},
"tags": []
},
"outputs": [],
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "fd849bc25b9b422398025911f0ae564a",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(VBox(children=(HBox(children=(IntSlider(value=1, description='8800 véhic.', max=10, min=1, read…"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"w_slider = widgets.IntSlider(\n",
" min=1,\n",
" max=10,\n",
" max=5,\n",
" step=1,\n",
" readout=False,\n",
" description='0 véhic.',\n",
@ -248,7 +280,7 @@
"\n",
"def compute(*ignore):\n",
" \n",
" shoteach = np.ceil(places[w_place.value][\"cars\"] * mots[\"car\"][\"ppv\"] / mots[w_mot.value][\"ppv\"]) / 10;\n",
" shoteach = np.ceil(places[w_place.value][\"cars\"] * mots[\"car\"][\"ppv\"] / mots[w_mot.value][\"ppv\"]) / 5;\n",
" w_slider.description = f\"{w_slider.value * shoteach:.0f} véhic.\"\n",
" file = open(f\"./outputs/{places[w_place.value][\"shorthand\"]}/plot_{w_mot.value}_{w_slider.value}.svg\", \"rb\")\n",
" read = file.read()\n",
@ -265,10 +297,32 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"id": "adf24613-a4ab-433f-8a1d-6e1d168163aa",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"\n",
"<style>\n",
"h1, p {\n",
" display: block !important;\n",
" max-width: 700px !important;\n",
" margin: 0 auto !important;\n",
" overflow: hidden !important; /*chrome bug patch*/\n",
"}\n",
"</style>\n"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from IPython.core.display import HTML\n",
"HTML(\"\"\"\n",