Fold updated growth geographies into codebase #387
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.
Updated growth geographies have slightly different categories and schema, with some columns no longer provided on this dataset, but instead via the parcels dataset. This PR is to fold those changes into the existing code base, and redirect any orphaned data dependencies (like jurisdiction name) to other sources.
Part 1 involves those core changes, mainly via the
datasources.py
andvariables.py
, reading in the new dataframe, and fetching alternatives.Part 2 relates to the zoning mods, which is currently handled as a separate process in a jupyter notebook. That process uses combinations of geographical area groupings (e.g. transit rich areas, high resource areas, growth geographies) - concatenations captured as
zoningmodcat
as the main vehicle to apply modifications to zoning.The script,
build_zoningmods_general.py
, applies zoning modifications to groups of parcels based on columns denoting membership in subareas. It performs the following functions:zoning_mods_fbp.yaml
).zoningmodcat
, by concatenating specified columns that denote subarea membership.zoningmodcat
column to create a DataFrame template for zoning modifications.