Skip to content

Added statistics framework#5

Open
aciduck wants to merge 3 commits intowiggin15:masterfrom
aciduck:master
Open

Added statistics framework#5
aciduck wants to merge 3 commits intowiggin15:masterfrom
aciduck:master

Conversation

@aciduck
Copy link
Copy Markdown
Contributor

@aciduck aciduck commented Dec 24, 2019

No description provided.

@wiggin15
Copy link
Copy Markdown
Owner

wiggin15 commented Jan 4, 2020

I don't really like the idea of passing a global "all_stats" variable to all the assets. I think it would make more sense if each asset implements a "get_stats" method. This method can use the values already retrieved in "get_values" (maybe we can even call it "get_extra_values" because it's not really statistics at that point). It can also return different classes, e.g. a bank asset can return a "StatBank" instance (or call it a "BankValues" instance, for example). Then we can aggregate the values in the new stats.py file based on the instance type again. Something like that. Makes sense?

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

Successfully merging this pull request may close these issues.

2 participants