From 8e3ff8ec668515d56f27c644f99ad051012fffdc Mon Sep 17 00:00:00 2001 From: Kamil Raczycki Date: Mon, 23 Sep 2024 19:08:57 +0200 Subject: [PATCH] chore: revert changes from testing --- .github/workflows/generate-dev-docs.yml | 38 +++++++++---------- examples/advanced_examples/osm_extracts.ipynb | 38 +++++++++---------- 2 files changed, 36 insertions(+), 40 deletions(-) diff --git a/.github/workflows/generate-dev-docs.yml b/.github/workflows/generate-dev-docs.yml index 7c0e8e1..3442491 100644 --- a/.github/workflows/generate-dev-docs.yml +++ b/.github/workflows/generate-dev-docs.yml @@ -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 🌐 diff --git a/examples/advanced_examples/osm_extracts.ipynb b/examples/advanced_examples/osm_extracts.ipynb index e3ed73f..525587d 100644 --- a/examples/advanced_examples/osm_extracts.ipynb +++ b/examples/advanced_examples/osm_extracts.ipynb @@ -59,7 +59,7 @@ "metadata": {}, "outputs": [], "source": [ - "# display_available_extracts(OsmExtractSource.geofabrik)" + "display_available_extracts(OsmExtractSource.geofabrik)" ] }, { @@ -75,7 +75,7 @@ "metadata": {}, "outputs": [], "source": [ - "# display_available_extracts(OsmExtractSource.osm_fr)" + "display_available_extracts(OsmExtractSource.osm_fr)" ] }, { @@ -91,7 +91,7 @@ "metadata": {}, "outputs": [], "source": [ - "# display_available_extracts(OsmExtractSource.bbbike)" + "display_available_extracts(OsmExtractSource.bbbike)" ] }, { @@ -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" ] }, { @@ -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" ] }, @@ -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" ] }, { @@ -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" ] }, @@ -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" ] }, { @@ -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" ] }, @@ -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" ] }, { @@ -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" ] }