-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_example_lyon.sh
94 lines (81 loc) · 3.03 KB
/
run_example_lyon.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
set -e
cd /home/ubuntu/irtx-synpop
mkdir /home/ubuntu/irtx-synpop/output
mkdir /home/ubuntu/irtx-synpop/cache
## Manually put the input data into
mkdir /home/ubuntu/irtx-synpop/input
## Prepare pipeline
git clone https://github.com/eqasim-org/ile-de-france.git /home/ubuntu/irtx-synpop/code
cd /home/ubuntu/irtx-synpop/code
git checkout 51a0c37
## Create environment
conda env create -f environment.yml -n synpop
## Activate environment
conda activate synpop
cd /home/ubuntu/irtx-synpop
## Prepare configurations
python3 prepare_config.py \
--template-path /home/ubuntu/irtx-synpop/data/template_lyon.yml \
--target-path /home/ubuntu/irtx-synpop/output/config_2022_100pct.xml \
--working-directory /home/ubuntu/irtx-synpop/cache \
--data-path /home/ubuntu/irtx-synpop/input \
--output-path /home/ubuntu/irtx-synpop/output \
--lead-path /home/ubuntu/irtx-synpop/data \
--processes 12 \
--memory 40G \
--output-prefix lead_2022_100pct_ \
--random-seed 1234 \
--sampling-rate 1.0 \
--lead-year 2022 \
--generate-synthetic-population true \
--generate-agent-based-simulation false
python3 prepare_config.py \
--template-path /home/ubuntu/irtx-synpop/data/template_lyon.yml \
--target-path /home/ubuntu/irtx-synpop/output/config_2030_100pct.xml \
--working-directory /home/ubuntu/irtx-synpop/cache \
--data-path /home/ubuntu/irtx-synpop/input \
--output-path /home/ubuntu/irtx-synpop/output \
--lead-path /home/ubuntu/irtx-synpop/data \
--processes 12 \
--memory 40G \
--output-prefix lead_2030_100pct_ \
--random-seed 1234 \
--sampling-rate 1.0 \
--lead-year 2030 \
--generate-synthetic-population true \
--generate-agent-based-simulation false
python3 prepare_config.py \
--template-path /home/ubuntu/irtx-synpop/data/template_lyon.yml \
--target-path /home/ubuntu/irtx-synpop/output/config_2022_5pct.xml \
--working-directory /home/ubuntu/irtx-synpop/cache \
--data-path /home/ubuntu/irtx-synpop/input \
--output-path /home/ubuntu/irtx-synpop/output \
--lead-path /home/ubuntu/irtx-synpop/data \
--processes 12 \
--memory 40G \
--output-prefix lead_2022_5pct_ \
--random-seed 1234 \
--sampling-rate 0.05 \
--lead-year 2022 \
--generate-synthetic-population true \
--generate-agent-based-simulation true
python3 prepare_config.py \
--template-path /home/ubuntu/irtx-synpop/data/template_lyon.yml \
--target-path /home/ubuntu/irtx-synpop/output/config_2030_5pct.xml \
--working-directory /home/ubuntu/irtx-synpop/cache \
--data-path /home/ubuntu/irtx-synpop/input \
--output-path /home/ubuntu/irtx-synpop/output \
--lead-path /home/ubuntu/irtx-synpop/data \
--processes 12 \
--memory 40G \
--output-prefix lead_2030_5pct_ \
--random-seed 1234 \
--sampling-rate 0.05 \
--lead-year 2030 \
--generate-synthetic-population true \
--generate-agent-based-simulation true
## Run synthesis pipeline
cd /home/ubuntu/irtx-synpop/code
for target in config_2022_100pct config_2022_5pct config_2030_100pct config_2030_5pct; do
python3 -m synpp /home/ubuntu/irtx-synpop/output/${target}.yml
done