Skip to content

Commit

Permalink
chore: revert changes from testing
Browse files Browse the repository at this point in the history
  • Loading branch information
RaczeQ committed Sep 23, 2024
1 parent daa9b82 commit 8e3ff8e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 40 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/generate-dev-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,30 +56,26 @@ jobs:
./duckdb :memory: "SELECT 1"
QuackOSM -h
- name: Execute jupyter notebooks
# run: |
# mv ./duckdb ./examples/duckdb
# jupyter nbconvert --to notebook --inplace --execute $(find examples/ -type f -name "*.ipynb") --ExecutePreprocessor.kernel_name='python3'
# rm ./examples/duckdb\
run: |
mv ./duckdb ./examples/duckdb
jupyter nbconvert --to notebook --inplace --execute examples/advanced_examples/osm_extracts.ipynb --ExecutePreprocessor.kernel_name='python3'
jupyter nbconvert --to notebook --inplace --execute $(find examples/ -type f -name "*.ipynb") --ExecutePreprocessor.kernel_name='python3'
rm ./examples/duckdb
# - uses: jannekem/run-python-script-action@v1
# name: Replace copyright date
# with:
# script: |
# import time
# file_name = "mkdocs.yml"
# with open(file_name) as f:
# data = f.read().replace('{current_year}', time.strftime("%Y"))
# with open(file_name, "w") as f:
# f.write(data)
# - name: Create remote for quackosm-docs repository
# run: git remote add origin-quackosm-docs https://github.com/kraina-ai/quackosm-docs
# - name: Fetch gh-pages branch
# run: git fetch origin-quackosm-docs gh-pages --depth=1
# - name: Publish dev documentation
# run: mike deploy --remote origin-quackosm-docs --rebase --push dev
- uses: jannekem/run-python-script-action@v1
name: Replace copyright date
with:
script: |
import time
file_name = "mkdocs.yml"
with open(file_name) as f:
data = f.read().replace('{current_year}', time.strftime("%Y"))
with open(file_name, "w") as f:
f.write(data)
- name: Create remote for quackosm-docs repository
run: git remote add origin-quackosm-docs https://github.com/kraina-ai/quackosm-docs
- name: Fetch gh-pages branch
run: git fetch origin-quackosm-docs gh-pages --depth=1
- name: Publish dev documentation
run: mike deploy --remote origin-quackosm-docs --rebase --push dev

deploy-docs-test:
name: Deploy documentation 📄 to Github Pages 🌐
Expand Down
38 changes: 19 additions & 19 deletions examples/advanced_examples/osm_extracts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"metadata": {},
"outputs": [],
"source": [
"# display_available_extracts(OsmExtractSource.geofabrik)"
"display_available_extracts(OsmExtractSource.geofabrik)"
]
},
{
Expand All @@ -75,7 +75,7 @@
"metadata": {},
"outputs": [],
"source": [
"# display_available_extracts(OsmExtractSource.osm_fr)"
"display_available_extracts(OsmExtractSource.osm_fr)"
]
},
{
Expand All @@ -91,7 +91,7 @@
"metadata": {},
"outputs": [],
"source": [
"# display_available_extracts(OsmExtractSource.bbbike)"
"display_available_extracts(OsmExtractSource.bbbike)"
]
},
{
Expand Down Expand Up @@ -650,9 +650,9 @@
"outputs": [],
"source": [
"geometry_filter = geocode_to_geometry(\"Monaco-Ville, Monaco\")\n",
"# matched_extracts = find_smallest_containing_extracts_total(geometry_filter)\n",
"# plot_full_geometry_coverage_breakdown(geometry_filter)\n",
"# matched_extracts"
"matched_extracts = find_smallest_containing_extracts_total(geometry_filter)\n",
"plot_full_geometry_coverage_breakdown(geometry_filter)\n",
"matched_extracts"
]
},
{
Expand All @@ -662,7 +662,7 @@
"outputs": [],
"source": [
"features_gdf = convert_geometry_to_geodataframe(geometry_filter, debug_memory=True, debug_times=True)\n",
"# plot_features_with_geometry_filter(features_gdf, geometry_filter)\n",
"plot_features_with_geometry_filter(features_gdf, geometry_filter)\n",
"features_gdf"
]
},
Expand All @@ -688,9 +688,9 @@
"outputs": [],
"source": [
"geometry_filter = geocode_to_geometry(\"Monaco\")\n",
"# matched_extracts = find_smallest_containing_geofabrik_extracts(geometry_filter, geometry_coverage_iou_threshold=0.01)\n",
"# plot_full_geometry_coverage_breakdown(geometry_filter, _get_geofabrik_index())\n",
"# matched_extracts"
"matched_extracts = find_smallest_containing_geofabrik_extracts(geometry_filter, geometry_coverage_iou_threshold=0.01)\n",
"plot_full_geometry_coverage_breakdown(geometry_filter, _get_geofabrik_index())\n",
"matched_extracts"
]
},
{
Expand All @@ -700,7 +700,7 @@
"outputs": [],
"source": [
"features_gdf = convert_geometry_to_geodataframe(geometry_filter, debug_memory=True, debug_times=True)\n",
"# plot_features_with_geometry_filter(features_gdf, geometry_filter)\n",
"plot_features_with_geometry_filter(features_gdf, geometry_filter)\n",
"features_gdf"
]
},
Expand All @@ -724,9 +724,9 @@
" \" 1.8092269635579328 42.40065303248514, 1.8092269635579328 42.67676873293743,\"\n",
" \" 1.382599544073372 42.67676873293743))\"\n",
")\n",
"# matched_extracts = find_smallest_containing_extracts_total(geometry_filter)\n",
"# plot_full_geometry_coverage_breakdown(geometry_filter)\n",
"# matched_extracts"
"matched_extracts = find_smallest_containing_extracts_total(geometry_filter)\n",
"plot_full_geometry_coverage_breakdown(geometry_filter)\n",
"matched_extracts"
]
},
{
Expand All @@ -736,7 +736,7 @@
"outputs": [],
"source": [
"features_gdf = convert_geometry_to_geodataframe(geometry_filter, debug_memory=True, debug_times=True)\n",
"# plot_features_with_geometry_filter(features_gdf, geometry_filter)\n",
"plot_features_with_geometry_filter(features_gdf, geometry_filter)\n",
"features_gdf"
]
},
Expand Down Expand Up @@ -769,9 +769,9 @@
" ],\n",
" }\n",
")\n",
"# matched_extracts = find_smallest_containing_extracts_total(geometry_filter)\n",
"# plot_full_geometry_coverage_breakdown(geometry_filter)\n",
"# matched_extracts"
"matched_extracts = find_smallest_containing_extracts_total(geometry_filter)\n",
"plot_full_geometry_coverage_breakdown(geometry_filter)\n",
"matched_extracts"
]
},
{
Expand All @@ -781,7 +781,7 @@
"outputs": [],
"source": [
"features_gdf = convert_geometry_to_geodataframe(geometry_filter, debug_memory=True, debug_times=True)\n",
"# plot_features_with_geometry_filter(features_gdf, geometry_filter)\n",
"plot_features_with_geometry_filter(features_gdf, geometry_filter)\n",
"features_gdf"
]
}
Expand Down

0 comments on commit 8e3ff8e

Please sign in to comment.