forked from BurntSushi/nflgame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGELOG
103 lines (72 loc) · 3.58 KB
/
CHANGELOG
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
1.1.8
=====
Data updates:
- Schedule (end of 2012 postseason)
- README inconsistency.
- Make the CSV function output consistent column headings/ordering.
1.1.7
=====
Data updates:
- Player database (end of 2012 regular season)
- Game data (full 2012 regular season)
- Game schedule up to first week of 2012 postseason
1.1.6
=====
Data update. And made parsing game times a bit more robust with respect to
errant or malformed data.
1.1.5
=====
Added player team and position information to CSV output. Team information
should always be available, but position information is dependent on whether
or not the player meta data exists for that particular player. (Chances are
good.)
1.1.4
=====
Bug fixes and added game diffs to the nflgame.live callback API.
- Fixed a bug where Game.max_player_stats didn't include statistics from
players that only had stats recorded in play-by-play data.
- When player stats are combined over a game or multiple games, keep the 'home'
attribute if the two objects agree on its value.
- Added Week 2 data from the 2012 season.
- The callback function used in the nflgame.live module now requires a third
parameter: a list of diffs between the games reported in the last interval
and the games reported in the current interval. It is hopefully useful in
inspecting statistics and plays that have been added or changed since the
last inspection of the game data. (The diffs list is orthogonal to the first
two parameters: active and completed.)
- Fixed bug #14. Games that hadn't started yet weren't filtered out of the
return list of nflgame.games and related functions.
- Fixed a bug where if JSON data from NFL.com is totally unparseable, then we
return None when constructing a Game object rather than crash the program.
- Added a team attribute to PlayerStats objects.
- When filtering by a particular field, if that fields value is None, then
always return False.
1.1.3
=====
Bug fixes.
- Fixed a bug that made pytz a hard dependency when importing nflgame.
1.1.2
=====
Added a couple of convenience methods to the API and fixed a few bugs.
- Added a 'started' parameter to nflgame.{games,games_gen,one} that when set,
will only return games that have already started or will start in five
minutes. This is useful for preemptying 404 errors that may be too costly.
- Added a max_player_stats method to the Game class. It works by combining
player statistics reported at the game level and player statistics reported
at the play level. Each statistic is combined by taking the max of each
value. (This is a heuristic designed to mitigate errors in the GameCenter
JSON data. It is not perfect.)
- Deprecated the nflgame.combine function. It has been replaced by three
different ways of combining player data across games: combine game level
player statistics with nflgame.combine_game_stats, combine play level
player statistics with nflgame.combine_play_stats and combine the maximum
of game and play level statistics with nflgame.combine_max_stats.
- Added three two point conversion properties to player stats objects: twopta,
twoptm and twoptmissed. These group the two point conversion statistics that
exist only as individual passing, rushing and receiving statistics.
- Fixed a bug in the main sequence generator where decorated properties
could not be used as a field in 'filter'. (i.e., use 'getattr' instead of
accessing '__dict__' directly.)
- Fixed bug 9. (Updated PlayerStats.csv to work with recent API changes.)
- Added a 'defense_tds' statistical field in the nflgame.statmap module for
convenience purposes.