Open MaxGhenis opened 7 months ago
The below code produces this error (notebook):
ParameterNotFoundError: The parameter 'gov.states.dc.dhs.tanf.need_standard.main.16' was not found in the 2022-01-01 tax and benefit system.
But it works when using dataset="cps_2022". Maybe this is more of a core issue, but we should give more intuitive error messages.
dataset="cps_2022"
core
from policyengine_us import Microsimulation from policyengine_core.periods import instant from policyengine_core.reforms import Reform import pandas as pd def use_reported_state_tax(parameters): parameters.simulation.reported_state_income_tax.update(start=instant("2022-01-01"), stop=instant("2030-12-31"), value=True) return parameters class baseline_reform(Reform): def apply(self): self.modify_parameters(use_reported_state_tax) baseline = Microsimulation(reform=baseline_reform) baseline.calc("snap", period=2022).sum()
This is likely causing 2022 microsimulations to fail: https://policyengine.org/us/policy?reform=14&focus=policyOutput.policyBreakdown&timePeriod=2022®ion=us&baseline=2
The below code produces this error (notebook):
But it works when using
dataset="cps_2022"
. Maybe this is more of acore
issue, but we should give more intuitive error messages.