-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Tax-Calculator's interaction with webapp-public and deploy #1224
Comments
My initial assessment is that: The parameters from the TaxBrain static input page should all go into the The parameters from the TaxBrain macro-elasticity dynamic model should go into the The parameters from the TaxBrain Partial Equilibrium dynamic model should go into the |
That makes sense to me @MattHJensen. The unused fields will just be |
Yes and no. They are not currently used by the TaxBrain GUI. But they will be available to taxbrain/file users after ospc-org/ospc.org#500 is resolved. |
Ok - I'll make changes to deploy based on what you described above, @MattHJensen . Then I'll deploy to test-app in next hour or so and, if all goes well, ospc later today. |
@PeterDSteinberg are there changes that need to be made in taxbrain? Can we tell, based on the request sent to the flask server, whether the data came from static input or one of the dynamic models? |
@brittainhard - the backend will know which endpoint is passing the parameters and can make some adjustments. But it seems like we need some way in |
@PeterDSteinberg, that is correct. The policy parameters are coming along from the static input, and then the behavior or gdp_elasticity params are added to those depending on the dynamic modeling case. |
Thanks @martinholmer. I believe this is resolved and am closing. @PeterDSteinberg, please comment if this should be reopened. |
The handling of parameters between
webapp-public
,deploy
andtaxcalc
is currently in an inconsistent state. Basically, we have always received in the backend celery tasks, dicts like:{u'2017': {u'_AMEDT_rt': [0.01], u'_ID_BenefitSurtax_Switch': [[True, True, True, True, True, True, True]]}}
webapp-public
currently continues to senduser_mods
to celery workers like that.The problem is that
taxcalc
is now strictly enforcing a new dictionary structure here and we get an exception there. The exception is that we do not have the newuser_mods
structure with keys of:Questions:
{u'2017':...
should be thepolicy
dict and we could assign every other field, such asgrowdiff_baseline
to empty dicts, not sure if that simple fix is accurate and it may mask calculation errors later.ospc.org/taxbrain
go into thepolicy
dict? It seems we may need to change the usages ofpackage_up_vars
in webapp-public to make sure we package theuser_mods
in the format.The text was updated successfully, but these errors were encountered: