You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spurred by a nice discussion with @nikhilwoodruff about the OpenFisca platform, I wanted to write down some notes for future reference about how Tax-Calculator might be enhanced so as to allow users flexibility to define non-parametric reforms more easily.
Pass just Policy and Records objects to all functions in calcfuctions.py, rather than tuples of variable and parameter names.
Define a class that has each function in calcfunctions.py as a method (or as each function defined as a class). Call this super class CF for now.
One can then define a non-parametric reform by creating an instance of the CF class and then updating an existing method or adding a new one. This would be similar to what is done to create a reform in OpenFisca, where a variable class is updated/created.
Spurred by a nice discussion with @nikhilwoodruff about the OpenFisca platform, I wanted to write down some notes for future reference about how Tax-Calculator might be enhanced so as to allow users flexibility to define non-parametric reforms more easily.
One path:
jit
decorators.Policy
andRecords
objects to all functions incalcfuctions.py
, rather than tuples of variable and parameter names.calcfunctions.py
as a method (or as each function defined as a class). Call this super classCF
for now.One can then define a non-parametric reform by creating an instance of the
CF
class and then updating an existing method or adding a new one. This would be similar to what is done to create a reform in OpenFisca, where a variable class is updated/created.cc @hdoupe
The text was updated successfully, but these errors were encountered: