-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.txt
27 lines (18 loc) · 1.1 KB
/
notes.txt
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
the x-coordinates go from -250 to 250 (every 1/10 of a foot) and the y-coordinates go from -50 to 940 (also every 1/10 of a foot)
shot types ['LongMidRange' 'AtRim' 'ShortMidRange' 'Corner3' 'Arc3']
count_as_possession - returns True if event is possession changing event
that should count as a real possession, False otherwise.
In order to not include possessions which a very low probability of scoring in possession counts,
possession won't be counted as a possession if it starts with <= 2 seconds left
and no points are scored before period ends
To activate python virtual environment:
source venv/bin/activate
To install packages:
pip3 install -r requirements.txt
PBP PARSE NOTES
pbp-parse.py fails on is_heave sometimes '>' not supported between instances of 'NoneType' and 'int'. Because I think shot distance is not there
Play-by-play data starts with October 31, 2000 game: https://www.nba.com/game/phi-vs-nyk-0020000001
Start Postgres on Mac OS
postgres -D /usr/local/var/postgres
https://github.com/ingomueller-net/docker-presto
https://github.com/jackconnolly21/nba-scheduler