Skip to content
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

Informative error message when a test runs on an indexed parameter with values only specified after test date #1096

Open
MaxGhenis opened this issue Dec 22, 2021 · 0 comments
Labels
kind:bug Bugs are defects and failure demand.

Comments

@MaxGhenis
Copy link
Contributor

MaxGhenis commented Dec 22, 2021

See the IndexError in this test run. The trace shows some functions like check_homogeneous_nodes.

This test failed because the policy parameter was specified starting at 2021-05-12 but the test was for 2021. Changing the test to 2022 in PolicyEngine/policyengine-us@e5a134f resolved it.

Elsewhere I've seen this error message:

openfisca_core.errors.parameter_not_found_error.ParameterNotFoundError: The parameter 'fcc.ebb[categorical_eligibility]' was not found in the 2021-01-01 tax and benefit system.

I think it might not have shown up in this case because the parameter it's calling is smart-indexed, but I haven't made a MWE to check.

@benjello benjello added the kind:bug Bugs are defects and failure demand. label Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Bugs are defects and failure demand.
Projects
None yet
Development

No branches or pull requests

2 participants