-
Notifications
You must be signed in to change notification settings - Fork 75
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
Add metadata field for stocks/flows #1104
Comments
Probably not general enough to include in Core; we should use existing fields and/or monkey-patch in openfisca-tools. |
This was decided because:
|
This would be a use case for #1071. |
I agree, but should individual metadata attributes be considered as part of it? I'm thinking of |
Very good question! To me, if the use case is:
…then it is pure metadata and should be labeled as such, as opposed to attributes that should be relevant (if not necessary) for computation. This helps ensure the test coverage is appropriate for the criticality of each type, maintainers have clear guidelines for accepting PRs as being complete or not, and contributors focus their efforts.
Excellent remark! I assume though that you meant “metadata attribute for parameters” (not for variables). |
Thanks @MattiSG for this helpful clarification! I actually was referring to the Variable unit attribute, am I understanding it correctly? |
Hah! Thanks for pointing this out. I don't know in which country packages that one is used. The same reasoning applies there 🙂 |
We're implementing this in the UK and US countries, but I thought it may be general enough to contribute to Core. Essentially, we'd find use in a metadata field for variables to specify whether they represent a stock (age, wealth) or a flow (income, expenditure), mostly to label them better on the front end. Is this a field we could add to
variable.py
?The text was updated successfully, but these errors were encountered: