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

Fix check_macro_cache logic around self.is_over_dataset #269

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

anth-volk
Copy link
Contributor

Fixes #268. This reverts the logic within Simulation.check_macro_cache to ensure that when it checks the value of self.is_over_dataset, it follows the same logic present prior to the integration of SimulationMacroCache, i.e., the logic available at

.

This does not add tests. While SimulationMacroCache did when it was merged, it was unclear how it actually fit into Simulation itself. Moving forward, we should clarify the aims and requirements of the macro cache, refactor Simulation (open as #264), then add tests to Simulation itself to prevent a similar issue

@MaxGhenis MaxGhenis merged commit 1232364 into PolicyEngine:master Sep 4, 2024
4 checks passed
@anth-volk anth-volk deleted the fix/268-over-caching branch September 4, 2024 21:59
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.

SimulationMacroCache over-applies caching
2 participants