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

Add default_calculation_period to test runner simulation #284

Conversation

anth-volk
Copy link
Contributor

Fixes #283. This takes the test_builder's default_period and applies as to the underlying Simulation instance's default_calculation_period. This is as simple as popping one in for the other, since they're both the same type.

This PR also adds a fail-safe whereby, if no simulation period is defined anywhere, not even as the default fallback period for the test run, the tests just use the current year. This could be removed if failure would be preferable.

@nikhilwoodruff
Copy link
Contributor

Adding a test that Core doesn't break the US microsimulation (cc @MaxGhenis)

@nikhilwoodruff
Copy link
Contributor

Merged through #285 - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test runner does not set simulation.default_calculation_period for the simulation it runs
2 participants