-
Notifications
You must be signed in to change notification settings - Fork 15
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 a unit to every legislative parameter #48
Conversation
Related to openfisca/openfisca-core#681 and openfisca/openfisca-france#1022 |
@@ -1,4 +1,5 @@ | |||
description: Amount of the basic income | |||
unit: currency |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not EUR
or USD
instead of currency
? These would be proper "units", while currency
is more vague
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great minds think alike 😅 openfisca/openfisca-france#1022 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The downside of using /
though is that it can be confused with a division. We would have for instance EUR/m2
and currency/EUR
where /
has a totally different meaning. I guess we could use currency:EUR
instead 🤔
One problem though is that the currency can change over time FRF vs EUR.
Ans yes de have all the IR in France since 1917 !
|
I think @michelbl knew about that when he designed the YAML format, and made sure unit could be specified at the value level. So you could have something like: description: montant des AF
unit: currency:EUR
values:
2015-01-01:
value: 200
...
2002-01-01:
value: 1000
unit: currency:FRF
2001-01-01:
value: 950
unit: currency:FRF |
@fpagnoux ok then. But it maight be more diffuclt to deal with the code base of France as in here openfisca/openfisca-france#1022 so I suggest that we accept a raw |
It's a free-text property, so we'll accept everything :). The discussion seems to have reached consensus, closing in favor of #49 |
parameters