Skip to content

Commit

Permalink
Merge branch 'main' of github.com:worldbank/GOSTnets into setup-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
elbeejay committed Jun 15, 2024
2 parents 4e4fb5b + 3e26232 commit 19d2dbe
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down Expand Up @@ -34,7 +34,7 @@ repos:
description: Checks for common misspellings in text files
additional_dependencies: [tomli]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
rev: v0.3.5
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
Expand Down
12 changes: 12 additions & 0 deletions Tutorials/EXAMPLE_Finding_links_between_pairs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,18 @@
"Practically we perform this calculation by looping through all origins and destinations and calculating the line string between them."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# for the sake of the example we truncate the number of origins and destinations\n",
"# to make the computation faster. We will only use the first 10 of each\n",
"origins = origins[:10]\n",
"destinations = destinations[:10]"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
5 changes: 5 additions & 0 deletions Tutorials/EXAMPLE_Gravity_Calculations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@
"gravity[\"NN\"] = origins"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
10 changes: 10 additions & 0 deletions Tutorials/Step_1-Extract_From_OSM.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,16 @@
"iceland.roads_raw.geometry.intersects(clip_shp_obj).value_counts()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# view the first 5 rows of the newly created roads GeoDataFrame\n",
"iceland.roadsGPD.head()"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 19d2dbe

Please sign in to comment.