-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.py
More file actions
123 lines (110 loc) · 2.23 KB
/
Constants.py
File metadata and controls
123 lines (110 loc) · 2.23 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
GAP = {
"ASW": {
"Title": "Accept Suppliers Word",
"Multiplier": 2,
"STD": 1,
"Price": 10
},
"USDA": {
"Title": "USDA Compliant",
"Multiplier": 1.5,
"STD": .5,
"Price": 50
},
"LGMA": {
"Title": "LGMA Compliant",
"Multiplier": 1,
"STD": .5,
"Price": 100
},
"SM": {
"Title": "Super Metrics",
"Multiplier": .6,
"STD": .25,
"Price": 150
}
}
PROCESS = {
"CSP1F": {
"Title": "Controlled Single Pass 1 Flume",
"Reduction": 1,
"STD": .2,
"Price": 500
},
"MR1F": {
"Title": "Managed Recirculation 1 Flume",
"Reduction": .05,
"STD": .1,
"Price": 100
},
"CR1F": {
"Title": "Controlled Recirculation 1 flume",
"Reduction": .1,
"STD": 1,
"Price": 250
},
"S1MR2F": {
"Title": "1st Stage Managed Recirculation 2 Flume",
"Reduction": .05,
"STD": 1.5,
"Price": 150
},
"MR2F": {
"Title": "Managed Recirculation 2 Flume",
"Reduction": .1,
"STD": 1,
"Price": 300
},
"CR2F": {
"Title": "Controlled Recirculation 2 Flume",
"Reduction": 1.5,
"STD": .5,
"Price": 650
},
"CR2FWB": {
"Title": "Controlled Recirculation 2 Flume With Boost",
"Reduction": 2,
"STD": .2,
"Price": 800
}
}
PRICES = {
"SuccessfulLot": 1000,
"PerRawTest": 12,
"PerFinishedTest": 15
}
UPGRADES = {
"Lot": {
"PricePer": 100
}
}
DEFUALTGAME = {
"balance": 5000,
"amountOfLots": 1,
"GAP_Selection": 'USDA',
"Process_Selection": 'MR1F',
"rawTests": 5,
"finishedTests": 3
}
OUTBREAKREQUIREMENTS = {
"Sick": 5,
"Susceptible": 50,
"Dose": 1
}
MYSQLCREDENTIALS = {
"host": "localhost",
"port": 8889,
"user": "root",
"password": "root",
"database": "WackBug"
}
def getList(_id):
_id = _id.upper()
switcher = {
"GAP": GAP,
"PROCESS": PROCESS,
"PRICES": PRICES,
"UPGRADES": UPGRADES,
"DEFAULTS": DEFUALTGAME
}
print(switcher.get(_id, "Invalid response"))