-
Notifications
You must be signed in to change notification settings - Fork 0
/
study2.py
30 lines (22 loc) · 919 Bytes
/
study2.py
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
import os
setups = ["20_30", "20_55", "20_80", "45_30", "45_55", "70_30"]
D = ["1.6", "2", "2.4", "2.8", "3.2"]
sim = []
for setup in setups:
#os.system("cargo run --release addv variants/study2/sim/{setup}_ base_configs/study2/sim_{setup}.yaml d 1.6 0.4 3.21".format(setup = setup))
sim.append([setup+"_d_{d}".format(d = d) for d in D])
sim = [item for sublist in sim for item in sublist]
for sim in sim:
os.system("cargo run --release Air variants/study2/sim/{sim}.yaml".format(sim = sim))
#_____________________________________________________
# For visualisation:
"""
setups = ["20_30", "20_55", "20_80", "45_30", "45_55", "70_30"]
D = ["1.6", "2", "2.4", "2.8", "3.2"]
sim = []
for setup in setups:
sim.append([setup+"_d_{d}".format(d = d) for d in D])
sim = [item for sublist in sim for item in sublist]
for sim in sim: \
runfile('D:/Dokumente/Uni/BA/rebecca.pampu.ba/visualizer.py', args= sim)
"""