generated from matsim-scenarios/matsim-scenario-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
57 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
python3 -m venv env | ||
python3.9 -m venv env | ||
source env/bin/activate | ||
|
||
module load gcc/9.2.0 | ||
|
||
pip install --upgrade pip | ||
pip install optuna geopandas rtree pygeos | ||
|
||
# Download latest calibration script | ||
wget "https://github.com/matsim-vsp/matsim-python-tools/raw/master/matsim/calibration.py" | ||
wget "https://github.com/matsim-vsp/matsim-python-tools/raw/master/matsim/analysis.py" | ||
pip install "matsim-tools[calibration]==0.0.16" | ||
|
||
# Alternative: Install from a specific branch on github | ||
#pip install --force-reinstall "matsim-tools[calibration] @ git+https://github.com/matsim-vsp/matsim-python-tools.git@dist-calibration" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
# Helper script to start one or multiple jobs and pass arguments to it | ||
|
||
name=$( echo "$*" | sed -e 's/ //g' -e 's/--//g') | ||
if [ -z "${run_name}" ]; then | ||
# Unset or emtpy | ||
name=$( echo "$*" | sed -e 's/ //g' -e 's/:/_/g' -e 's/--//g' -e 's/\./_/g' -e 's/\///g') | ||
else | ||
name="${run_name}" | ||
fi | ||
|
||
|
||
export RUN_ARGS="$*" | ||
export RUN_NAME="$name" | ||
|
||
echo "Starting run kh-$name" | ||
echo "Starting run $name" | ||
echo "$*" | ||
|
||
qsub -V -N lausitz-"$name" job.sh | ||
sbatch --export=ALL --job-name matsim-"$name" job.sh |