Skip to content

Conversation

@mikesmit
Copy link
Collaborator

…ded.

Related to PolicyEngine/issues#350

The existing code is pretty inconsistent in terms of how/when it decides to try to download a data file and we haven't clearly defined the intended behavior.

We are prioritizing the simulation API use case in which case we always want to use the most recent version of the data file for a simulation.

This change means that if the code specifies a remote data file (either by explicitly giving a url or by defaulting to a country dataset) we will always check for a new version when creating a Simulation object even if we have a local copy.

…ded.

Related to PolicyEngine/issues#350

The existing code is pretty inconsistent in terms of how/when it decides to try to download a data file and we haven't clearly defined the intended behavior.

We are prioritizing the simulation API use case in which case we always want to use the most recent version of the data file for a simulation.

This change means that if the code specifies a remote data file (either by explicitly giving a url or by defaulting to a country dataset) we will always check for a new version when creating a Simulation object even if we have a local copy.
@mikesmit mikesmit force-pushed the 350_always_check_for_new_versions branch from 7c052bc to f78f538 Compare May 22, 2025 04:10
@mikesmit mikesmit marked this pull request as ready for review May 22, 2025 04:14
Copy link
Contributor

@anth-volk anth-volk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Would appreciate holding off on merging until May 23 while I run some regression tests locally.

@mikesmit mikesmit merged commit e5efa57 into main May 23, 2025
4 checks passed
@mikesmit mikesmit deleted the 350_always_check_for_new_versions branch May 23, 2025 09:50
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.

3 participants