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
{{ message }}
Repository navigation
Read UK budget rows from gov_tax and gov_spending #4378
PolicyEngine/policyengine-sim-api#1171 fixes the UK budget headline. It totalled household_tax, which leaves out employer National Insurance, so a 1 percentage point cut in the employer rate showed as a saving in the app. With the fix, a UK report's budget_summary tax and benefit rows are named gov_tax and gov_spending, the model's government accounts.
budget_impact in policyengine_api/services/v2/stored_reports/economy_results/transformations.py reads only the rows named household_tax and household_benefits, and raises when either is missing. Once sim-api#1171 deploys, every new UK report would be unreadable ("the budget summary has no household_tax row"). The reader needs to read the UK's new rows, fall back to the household rows for reports stored earlier, and deploy first.
Activity