-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
67 lines (61 loc) · 1.35 KB
/
config.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import constants
# to be updated weekly
week = 5
# manual overrides (to be updated weekly)
preProcessConfig = {
"playerConfig" : {
"playersToAdd": [],
"playersToOmit": ['Ben Roethlisberger', 'Mac Jones', 'Jacoby Brissett']
},
"teamConfig": {
#[teamName]: countOfPlayers
"playersPerTeam": {}
},
"positionConfig": {
"salaryRange": {
"QB": {
"min": 2000,
"max": 6000
}
},
# Fantasy points per $1000
"valueRange": {
"QB": {
"min": 2,
#represents infinity (no cap)
"max": 1000
}
}
}
}
lineupConfig = [
# avg + no qb cap
{
"preProcess": False,
"projectionType": constants.PROJECTION_TYPES["average"]
},
# floor + no qb cap
{
"preProcess": False,
"projectionType": constants.PROJECTION_TYPES["floor"]
},
# momentum + no qb cap
{
"preProcess": False,
"projectionType": constants.PROJECTION_TYPES["momentum"]
},
# avg + qb cap
{
"preProcess": True,
"projectionType": constants.PROJECTION_TYPES["average"]
},
# all + qb cap
{
"preProcess": True,
"projectionType": constants.PROJECTION_TYPES["all"]
}
]
#add extra properties to lineup config
config = list(map(lambda conf: {**conf, **{"week": week, "preProcessConfig": preProcessConfig}}, lineupConfig))
def getConfig():
return config