-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
55 lines (46 loc) · 1.21 KB
/
run.py
File metadata and controls
55 lines (46 loc) · 1.21 KB
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
from specifics import getSim
from mods import *
from shutil import copyfile
import random
# NOTE: Add the mod functions (variables) to run to modCol here:
modCol = [
globalRewardSizeCurrMod10,
globalRewardSizeCurrMod20,
globalRewardSizeCurrMod30,
globalRewardSizeCurrMod40,
globalRewardCoupCurrMod1,
globalRewardCoupCurrMod2,
globalRewardCoupCurrMod3,
globalRewardCoupCurrMod4,
globalRewardCoupCurrMod5,
differenceRewardSizeCurrMod10,
differenceRewardSizeCurrMod20,
differenceRewardSizeCurrMod30,
differenceRewardSizeCurrMod40,
differenceRewardCoupCurrMod1,
differenceRewardCoupCurrMod2,
differenceRewardCoupCurrMod3,
differenceRewardCoupCurrMod4,
differenceRewardCoupCurrMod5,
]
# modCol = [
# globalRewardMod,
# differenceRewardMod
# ]
def copyTestFiles():
copyfile("mods.py", "log/%s/mods.py"%sim.data["Specifics Name"])
copyfile("specifics.py", "log/%s/specifics.py"%sim.data["Specifics Name"])
def main():
getSim().run()
i = 0
while True:
print("Run %i"%(i))
random.shuffle(modCol)
for mod in modCol:
sim = getSim()
mod(sim)
sim.run()
i += 1
# main()
# sim = getSim()
# sim.run()