-
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
Merge Variable
and DatedVariable
#371
Comments
Or have only |
I like the second option, it makes the API simpler :) |
dated_function
without DatedVariable
Varable
and DatedVariable
@fpagnoux I changed the issue title and description |
Varable
and DatedVariable
Variable
and DatedVariable
Following a discussion with @MattiSG and personal thoughts:
|
The variable that have no formula but a start/stop date is typically a box of the income tax form that doesn't last forever. You should not be able to set it even if it doesn't affect the computation. |
Solution: support |
I wonder if in some cases, we want to stop the computation of a variable through its formulas without deactivating the variable itself. |
Any example? If I recall correctly, it seems that a “temporary” removal of a variable from law which would be brought back later on, which seems like the main use case, is usually already implemented by creating a new variable to avoid confusion. |
|
Split all tests into test_call/test_dates. Vectorize dummy functions output. Update tests so that they all pass > Represents variable dates management contract before #371 changes.
Split all tests into test_call/test_dates. Vectorize dummy functions output. Update tests so that they all pass > Represents variable dates management contract before #371 changes.
Split all tests into test_call/test_dates. Vectorize dummy functions output. Update tests so that they all pass > Represents variable dates management contract before #371 changes.
See openfisca/openfisca-france#376 (comment)
When the decorator
dated_function
is used on aVariable
like this:the Core should detect that it's a "dated variable" automatically.
The text was updated successfully, but these errors were encountered: