Skip to content

Commit

Permalink
Start a script to run all examples. #33
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Oct 3, 2023
1 parent a94a3de commit a303ce9
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/liverpool/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
# First convert the CRS
run(
[
"ogr2ogr" "-f",
"ogr2ogr",
"-f",
"GeoJSON",
"input/all_oas.geojson",
"input/Output_Areas_Dec_2011_Boundaries_EW_BGC_2022_7971430631129549274.gpkg",
Expand Down
2 changes: 1 addition & 1 deletion examples/london/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
extractCentroids(
pbfInput="input/input.osm.pbf",
geojsonOutput="input/schools.geojson",
where=f"amenity = 'amenity'",
where=f"amenity = 'school'",
)
33 changes: 33 additions & 0 deletions examples/run_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

set -e
set -x

# TODO Check for tools?

function run_example {
echo "Running example ${1}"
cd $1

# Clean up everything from previous runs
rm -rf input/ intermediate/ output/

# Create input data
python3 setup.py

# Run the pipeline
cargo run --release -- config.json

cd ..
}

# Small ones
run_example york
#run_example liverpool # TODO has some manual steps

# Moderate
run_example edinburgh
run_example london

# Huge
#run_example england_2011_home_to_work

0 comments on commit a303ce9

Please sign in to comment.