abstreet/importer/actdev_scenarios.sh
Dustin Carlino 5d0c5766e5 Import scenarios for all actdev sites. Delete the old code for actdev
scenarios, which did a little disaggregation itself from desire lines.
2021-02-15 13:26:44 -08:00

21 lines
719 B
Bash
Executable File

#!/bin/bash
# This script imports scenarios an actdev site that's already been imported.
# It's run manually once per site.
set -e
SITE=$1
if [ "$SITE" == "" ]; then
echo Missing args;
exit 1;
fi
CITY=`echo $SITE | sed -r 's/-/_/g'`
rm -fv *.json
wget https://raw.githubusercontent.com/cyipt/actdev/main/data-small/$SITE/scenario-base.json
wget https://raw.githubusercontent.com/cyipt/actdev/main/data-small/$SITE/scenario-godutch.json
cargo run --release --bin import_traffic -- --map=data/system/gb/$CITY/maps/center.bin --input=scenario-base.json --skip_problems
cargo run --release --bin import_traffic -- --map=data/system/gb/$CITY/maps/center.bin --input=scenario-godutch.json --skip_problems
rm -fv *.json