Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
Expand Down
70 changes: 6 additions & 64 deletions docs/tutorials/EXAMPLE_End2End_Overture.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "f77ea309",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -106,7 +106,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "08aea9dc",
"metadata": {},
"outputs": [],
Expand All @@ -128,56 +128,10 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"id": "9b56eadf",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>id</th>\n",
" <th>class</th>\n",
" <th>subtype</th>\n",
" <th>road_surface</th>\n",
" <th>speed_limits</th>\n",
" <th>width_rules</th>\n",
" <th>geometry</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
"Empty GeoDataFrame\n",
"Columns: [id, class, subtype, road_surface, speed_limits, width_rules, geometry]\n",
"Index: []"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"# Downlaod data from Overture\n",
"# The overture maps transport network extraction requires a bounding box in WGS84 (EPSG:4326) format\n",
Expand All @@ -193,22 +147,10 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "91f6d114",
"metadata": {},
"outputs": [
{
"ename": "AttributeError",
"evalue": "module 'GOSTnets.conversion_utils' has no attribute 'convert_roads_to_nx'",
"output_type": "error",
"traceback": [
"\u001b[31m---------------------------------------------------------------------------\u001b[39m",
"\u001b[31mAttributeError\u001b[39m Traceback (most recent call last)",
"\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[7]\u001b[39m\u001b[32m, line 1\u001b[39m\n\u001b[32m----> \u001b[39m\u001b[32m1\u001b[39m G = \u001b[43mcu\u001b[49m\u001b[43m.\u001b[49m\u001b[43mconvert_roads_to_nx\u001b[49m(transport_df, unq_id=\u001b[33m'\u001b[39m\u001b[33mid\u001b[39m\u001b[33m'\u001b[39m, infra_field=\u001b[33m'\u001b[39m\u001b[33mclass\u001b[39m\u001b[33m'\u001b[39m)\n",
"\u001b[31mAttributeError\u001b[39m: module 'GOSTnets.conversion_utils' has no attribute 'convert_roads_to_nx'"
]
}
],
"outputs": [],
"source": [
"G = cu.convert_roads_to_nx(transport_df, unq_id='id', infra_field='class')"
]
Expand Down
Loading