-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdriver.py
51 lines (39 loc) · 1 KB
/
driver.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from space import *
# #import pdb; pdb.set_trace()
# #x = dispatch["room"]("ROOM")
import pdb; pdb.set_trace()
yy = population()
# #default bldg shape [1, 8, 1, 8]
bldg = building(yy)
# #adds 8 people to one apt of bldg
yy.populate(num=8, pathIn=[1, 1])
# #adds minimal depth tree of bars
yy.populate(typ=dispatch["bar"], num=8)
yy.connectTypes("person", "bar", 1)
levels = yy.findLevels()
#yy.showPaths()
yy.prune()
yy.showPaths()
import pdb; pdb.set_trace()
for i in range(0,5):
yy.setInfPct(.1) # #default 25s%
print("Disease dose: " + str(yy.cng.disease.dose))
yy.step(500, follow=False)
pdb.set_trace()
yy.cng.disease.dose *= 2
yy.cng.disease.diseaseRecord = {}
#
#xx = population()
#xx.populate(typ=person, num=100)
## #
#xx.populate(typ=dispatch["bar"], num=8)
#xx.setInfPct(.1) # #default 25s%
#xx.connectTypes("person", "bar")
#xx.findLevels()
#xx.showPaths()
#xx.prune()
#xx.showPaths()
#xx.showInfState()
import pdb; pdb.set_trace()
#xx.step(5, follow=True)
print("Finished")