PolicyEngine / policyengine-us

The PolicyEngine US Python package contains a rules engine of the US tax-benefit system, and microdata generation for microsimulation analysis.
https://policyengine.org/us
GNU Affero General Public License v3.0
103 stars 176 forks source link

`Microsimulation().calc("household_net_income")` is very slow in Colab #2027

Closed MaxGhenis closed 1 year ago

MaxGhenis commented 1 year ago

I've left it going for minutes and it doesn't complete (example notebook). I'm guessing this has to do with the premium tax credit and SLSPC. Is there a way to turn that off? We can set premium_tax_credit to 0 in the IndividualSim, is there an analog for microsim?

MaxGhenis commented 1 year ago

Passing 2023 instead of 2022 to calc or calculate_dataframe fixes this. This is due to the second-lowest-cost silver plan data (based on a big parameter file) only being cached for 2023.

@KathrynPanger fyi