Skip to content

Commit

Permalink
0.2.4 The "Speedy" Update
Browse files Browse the repository at this point in the history
- Refactored `cfbd_json_py.games.get_cfbd_player_game_stats()`, `cfbd_json_py.plays.get_cfbd_pbp_play_types()`, and `cfbd_json_py.players.get_cfbd_player_season_stats()` to use a significantly faster process to parse player stats.
- Changed `print()` statements into `logging.info()` statements for `cfbd_json_py.games.get_cfbd_player_advanced_game_stats()`
- For `cfbd_json_py.metrics.get_cfbd_predicted_ppa_from_down_distance()`, a `logging.warn()` call is now a `logging.warning()` call due to a pending deprecation of `logging.warn()`.
- Fixed an issue found in `cfbd_json_py.players.get_cfbd_pbp_stats()` where the function would warn the user about an issue that the user should not have triggered.
- Removed `tqdm` integration with `cfbd_json_py.plays.get_cfbd_pbp_play_types()`, `cfbd_json_py.rankings.get_cfbd_poll rankings()`.
- Updated the package version to `0.2.4`.
  • Loading branch information
armstjc committed Sep 16, 2024
1 parent 33c2906 commit c6b9bf0
Show file tree
Hide file tree
Showing 35 changed files with 16,452 additions and 21,288 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"Opportunies"
]
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# CHANGELOG: cfbd_json_py


## 0.2.4 The "Speedy" Update.
- Refactored `cfbd_json_py.games.get_cfbd_player_game_stats()`, `cfbd_json_py.plays.get_cfbd_pbp_play_types()`, and `cfbd_json_py.players.get_cfbd_player_season_stats()` to use a significantly faster process to parse player stats.
- Changed `print()` statements into `logging.info()` statements for `cfbd_json_py.games.get_cfbd_player_advanced_game_stats()`
- For `cfbd_json_py.metrics.get_cfbd_predicted_ppa_from_down_distance()`, a `logging.warn()` call is now a `logging.warning()` call due to a pending deprecation of `logging.warn()`.
- Fixed an issue found in `cfbd_json_py.players.get_cfbd_pbp_stats()` where the function would warn the user about an issue that the user should not have triggered.
- Removed `tqdm` integration with `cfbd_json_py.plays.get_cfbd_pbp_play_types()`, `cfbd_json_py.rankings.get_cfbd_poll rankings()`.
- Updated the package version to `0.2.4`.

## 0.2.3 The "Hotfix" Update.
- Fixed an issue raised in #51 where the `[player_id]` column would be entirely blank in `cfbd_json_py.players.get_cfbd_player_season_stats()`.
- Updated the package version to `0.2.3`.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ You can view the status of the project [by clicking on this link](https://github
If you find an issue/bug while using this python package, [please feel free to raise an issue](https://github.com/armstjc/cfbd-json-py/issues), we're only human, and there will inevitably be issues found!

## Docs
For the cfbd-json-py docs, they can be found at [armstjc.github.io/cfbd-json-py/](armstjc.github.io/cfbd-json-py/)
For the cfbd-json-py docs, they can be found at [armstjc.github.io/cfbd-json-py/](https://armstjc.github.io/cfbd-json-py/cfbd_json_py.html)
2 changes: 1 addition & 1 deletion cfbd_json_py/betting.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Creation Date: 08/30/2023 01:13 EDT
# Last Updated Date: 08/13/2024 02:10 PM EDT
# Last Updated Date: 08/28/2024 11:00 PM EDT
# Author: Joseph Armstrong ([email protected])
# File Name: betting.py
# Purpose: Houses functions pertaining to betting data within the CFBD API.
Expand Down
2 changes: 1 addition & 1 deletion cfbd_json_py/drives.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Creation Date: 08/30/2023 01:13 EDT
# Last Updated Date: 08/13/2024 02:10 PM EDT
# Last Updated Date: 08/28/2024 11:00 PM EDT
# Author: Joseph Armstrong ([email protected])
# File Name: drives.py
# Purpose: Houses functions pertaining to CFB drive data within the CFBD API.
Expand Down
2,035 changes: 267 additions & 1,768 deletions cfbd_json_py/games.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions cfbd_json_py/metrics.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Creation Date: 08/30/2023 01:13 EDT
# Last Updated Date: 08/13/2024 02:10 PM EDT
# Last Updated Date: 09/16/2024 06:10 PM EDT
# Author: Joseph Armstrong ([email protected])
# File Name: metrics.py
# Purpose: Houses functions pertaining to various CFB
Expand Down Expand Up @@ -197,7 +197,7 @@ def get_cfbd_predicted_ppa_from_down_distance(
# but we have to convey to the person calling this
# function that setting `down = 5`
# is not something they should be doing.
logging.warn(
logging.warning(
'There is a very limited number of "5th down" situations '
+ "in American Football history. "
+ "Do not expect anything back when calling this function, "
Expand Down
Loading

0 comments on commit c6b9bf0

Please sign in to comment.