-
Notifications
You must be signed in to change notification settings - Fork 14
/
defaults.json
51 lines (51 loc) · 1.97 KB
/
defaults.json
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
{
"schema": {
"labels": {
"use_2018": {"type": "bool", "validators": {}}
},
"additional_members": {
"section_1": {"type": "str"},
"section_2": {"type": "str"}
}
},
"pitcher": {
"title": "Pitcher Name",
"description": "Name of pitcher to pull data on",
"section_1": "Parameters",
"section_2": "Pitcher",
"notes": "Make sure the name of the pitcher is correct. A good place to reference this is baseball-reference.com",
"type": "str",
"value": [{"value": "Clayton Kershaw"}],
"validators": {"choice": {"choices": ["Clayton Kershaw", "Julio Teheran", "Max Scherzer"]}}
},
"batter": {
"title": "Batter Name",
"description": "Name of batter for pitching matchup analysis",
"section_1": "Parameters",
"section_2": "Batter",
"notes": "Make sure the name of the batter is correct. A good place to reference this is baseball-reference.com",
"type": "str",
"value": [{"value": "Freddie Freeman"}],
"validators": {"choice": {"choices": ["Freddie Freeman", "Bryce Harper", "Mookie Betts"]}}
},
"start_date": {
"title": "Start Date",
"description": "Date to start pulling statcast information",
"section_1": "Parameters",
"section_2": "Date",
"notes": "If using the 2018 dataset, only use dates in 2018.",
"type": "date",
"value": [{"value": "2018-01-01"}],
"validators": {"date_range": {"min": "2008-01-01", "max": "end_date"}}
},
"end_date": {
"title": "End Date",
"description": "Date to quit pulling statcast information",
"section_1": "Parameters",
"section_2": "Date",
"notes": "If using the 2018 dataset, only use dates in 2018.",
"type": "date",
"value": [{"value": "2018-11-10"}],
"validators": {"date_range": {"min": "2008-01-01", "max": "2018-11-10"}}
}
}