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

Include Misses and Blocks as cumstats #16

Open
FranGoitia opened this issue Aug 8, 2016 · 1 comment
Open

Include Misses and Blocks as cumstats #16

FranGoitia opened this issue Aug 8, 2016 · 1 comment

Comments

@FranGoitia
Copy link

Is there any way to include misses and blocks as totals asked in cum_stats ? I would like to be able to calculate the Fenwick % of a team at a particular point in a season, so I would need to have stats at raw level.
Regards,
Francisco

@robhowley
Copy link
Owner

Hey Franciso,

The easiest way to do this is to use the Fenwick cumulative stats object which tracks the totals for each game accessible via the total attribute. When you persist this game by game data, you can then add it up across whatever game selection/time period you had in mind. This is referenced in the README example.

In general, if you wanted a custom counter for each you would create your own accumulator object that can then be passed into the cum_stats parameter of Game. This can be accomplished by inheriting from TeamIncrementor. See how the existing counters are implemented here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants