-
Notifications
You must be signed in to change notification settings - Fork 76
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
Uniformize variable declaration : allow inputs to be declared as a formula without a function #348
Conversation
I'm not sure entirely sure this is ready to merge right now, but tests seem to be ok on my computer. Maybe the core team to have a look to make sure everything is not broken :) |
Why not but one should rename formula to variable somehow. A formula without a function is a bit awkward. |
Good point, thanks ! Something like that ? @reference_variable
class ass_precondition_remplie(SimpleVariable):
column = BoolCol
entity_class = Individus
label = u"Eligible à l'ASS" Btw, what does |
Ok, I understand better, thanks :) |
Furthermore I would suggest renaming even We could even replace the term reference by either vanilla (like @benjello says often), country or tax_benefit_system |
|
@reference_variable is good for me |
I tend to agree with @cbenz that for contributors who are only using Openfisca to run simulation about the actual law and are not trying potential reforms (e.g. embauche or mes-aides), the term Ideally, it would be nice to have a term that makes sense both for the distinction reference vs reform, and for use cases without reform. |
If we use core_variable it will mess-up with openfisca-core. |
I close this pull request but opened a new issue: #355 |
As discussed with @eraviart last Friday, declaring formulas and input in different ways has a few drawbacks :
It would be nice if we could have only one syntax. A possible implementation (started here) is to just allow
SimpleFormulaColumn
to not have a function.Before :
After :