Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default values for NBA players #508

Merged
merged 1 commit into from
Oct 17, 2020
Merged

Conversation

roclark
Copy link
Owner

@roclark roclark commented Oct 16, 2020

In cases where no information is present for an NBA player, the default value of None should be used for all attributes. At present, the code was unable to initialize many default common variables for players, which resulted in an error while trying to pull data from the Roster class.

Fixes #456

Signed-Off-By: Robert Clark [email protected]

@roclark roclark added the bug Something isn't working label Oct 16, 2020
@roclark roclark added this to the Release 0.6.0 milestone Oct 16, 2020
@roclark roclark self-assigned this Oct 16, 2020
In cases where no information is present for an NBA player, the default
value of None should be used for all attributes. At present, the code
was unable to initialize many default common variables for players,
which resulted in an error while trying to pull data from the Roster
class.

Signed-Off-By: Robert Clark <[email protected]>
@roclark roclark force-pushed the fix-nba-missing-player-data branch from f151a47 to a77d96f Compare October 16, 2020 23:55
@codecov
Copy link

codecov bot commented Oct 17, 2020

Codecov Report

Merging #508 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #508   +/-   ##
=======================================
  Coverage   99.97%   99.97%           
=======================================
  Files          55       55           
  Lines       13106    13108    +2     
=======================================
+ Hits        13103    13105    +2     
  Misses          3        3           
Impacted Files Coverage Δ
sportsreference/nba/player.py 100.00% <100.00%> (ø)
sportsreference/nba/roster.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5bb12aa...a77d96f. Read the comment docs.

@roclark roclark merged commit 2aa8997 into master Oct 17, 2020
@roclark roclark deleted the fix-nba-missing-player-data branch October 17, 2020 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NBA player.minutes_played error
1 participant