Enable state-level enhanced CPS runs #2226
Open
+121
−65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes #2216
Before this can be merged, PolicyEngine/policyengine-api#2009 must be approved. A minor change must be made to the production database, then that PR must be merged. After that, this PR can be merged.
Changes
This PR makes various changes in order to support the application of a dataset to any given region. In conjunction with the API-side PR, this creates a new "dataset" URL parameter for society-wide simulation runs, but also maintains backward compatibility with our previous pattern of using the
enhanced_us
region to denote a US-wide sim run with the enhanced CPS dataset. It also denotes datasets on user profile cards.Screenshots
AwesomeScreenshot-11_23_2024.1_02_06AM.webm