From 114e6b765a3176076e51035e8b064928f5d630b0 Mon Sep 17 00:00:00 2001 From: Lucas Merrill Brown Date: Wed, 12 Jan 2022 10:16:09 -0500 Subject: [PATCH] Issue 1129: remove deprecated field other_census_tract_fields_to_keep (#1130) --- .../ipython/scoring_comparison.ipynb | 29 ++----------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/data/data-pipeline/data_pipeline/ipython/scoring_comparison.ipynb b/data/data-pipeline/data_pipeline/ipython/scoring_comparison.ipynb index 2f7af47e..8211cff0 100644 --- a/data/data-pipeline/data_pipeline/ipython/scoring_comparison.ipynb +++ b/data/data-pipeline/data_pipeline/ipython/scoring_comparison.ipynb @@ -387,9 +387,6 @@ " field_names=[\n", " \"method_name\",\n", " \"priority_communities_field\",\n", - " # TODO: remove this field??\n", - " # Note: this field only used by indices defined at the census tract level.\n", - " \"other_census_tract_fields_to_keep\",\n", " ],\n", ")\n", "\n", @@ -413,7 +410,6 @@ " Index(\n", " method_name=\"Definition L\",\n", " priority_communities_field=field_names.SCORE_L_COMMUNITIES,\n", - " other_census_tract_fields_to_keep=[],\n", " ),\n", " ]\n", " # Insert indices for each of the factors from Definition L.\n", @@ -422,7 +418,6 @@ " Index(\n", " method_name=factor,\n", " priority_communities_field=factor,\n", - " other_census_tract_fields_to_keep=[],\n", " )\n", " for factor in definition_l_factors\n", " ]\n", @@ -431,58 +426,42 @@ " # Note: we're renaming Score G as NMTC Modified for clarity, since that's what Score G is under the hood.\n", " method_name=\"NMTC Modified\",\n", " priority_communities_field=field_names.SCORE_G_COMMUNITIES,\n", - " other_census_tract_fields_to_keep=[],\n", " ),\n", " Index(\n", " method_name=\"NMTC\",\n", " priority_communities_field=\"NMTC (communities)\",\n", - " other_census_tract_fields_to_keep=[],\n", " ),\n", " Index(\n", " method_name=\"Score C\",\n", " priority_communities_field=\"Score C (top 25th percentile)\",\n", - " other_census_tract_fields_to_keep=[],\n", " ),\n", " Index(\n", " method_name=\"Score D (30th percentile)\",\n", " priority_communities_field=\"Score D (top 30th percentile)\",\n", - " other_census_tract_fields_to_keep=[],\n", " ),\n", " Index(\n", " method_name=\"Score D (25th percentile)\",\n", " priority_communities_field=\"Score D (top 25th percentile)\",\n", - " other_census_tract_fields_to_keep=[],\n", " ),\n", " Index(\n", " method_name=\"Score F\",\n", " priority_communities_field=field_names.SCORE_F_COMMUNITIES,\n", - " other_census_tract_fields_to_keep=[],\n", " ),\n", " Index(\n", " method_name=\"CalEnviroScreen 4.0\",\n", " priority_communities_field=\"calenviroscreen_priority_community\",\n", - " other_census_tract_fields_to_keep=[\n", - " CALENVIROSCREEN_SCORE_FIELD,\n", - " CALENVIROSCREEN_PERCENTILE_FIELD,\n", - " ],\n", " ),\n", " Index(\n", " method_name=\"Persistent Poverty\",\n", " priority_communities_field=PERSISTENT_POVERTY_TRACT_LEVEL_FIELD,\n", - " other_census_tract_fields_to_keep=[],\n", " ),\n", " Index(\n", " method_name=field_names.ENERGY_RELATED_COMMUNITIES_DEFINITION_ALTERNATIVE,\n", " priority_communities_field=field_names.ENERGY_RELATED_COMMUNITIES_DEFINITION_ALTERNATIVE,\n", - " other_census_tract_fields_to_keep=[],\n", " ),\n", " Index(\n", " method_name=\"Michigan EJSCREEN\",\n", " priority_communities_field=field_names.MICHIGAN_EJSCREEN_PRIORITY_COMMUNITY_FIELD,\n", - " other_census_tract_fields_to_keep=[\n", - " field_names.MICHIGAN_EJSCREEN_SCORE_FIELD,\n", - " field_names.MICHIGAN_EJSCREEN_PERCENTILE_FIELD,\n", - " ],\n", " ), \n", " ]\n", " # Insert indices for each of the HOLC factors.\n", @@ -491,7 +470,6 @@ " Index(\n", " method_name=factor,\n", " priority_communities_field=factor,\n", - " other_census_tract_fields_to_keep=[],\n", " )\n", " for factor in HOLC_FACTORS\n", " ]\n", @@ -502,17 +480,14 @@ " Index(\n", " method_name=\"EJSCREEN Areas of Concern, National, 80th percentile\",\n", " priority_communities_field=field_names.EJSCREEN_AREAS_OF_CONCERN_NATIONAL_80TH_PERCENTILE_COMMUNITIES_FIELD,\n", - " other_census_tract_fields_to_keep=[],\n", " ),\n", " Index(\n", " method_name=\"EJSCREEN Areas of Concern, National, 90th percentile\",\n", " priority_communities_field=field_names.EJSCREEN_AREAS_OF_CONCERN_NATIONAL_90TH_PERCENTILE_COMMUNITIES_FIELD,\n", - " other_census_tract_fields_to_keep=[],\n", " ),\n", " Index(\n", " method_name=\"EJSCREEN Areas of Concern, National, 95th percentile\",\n", " priority_communities_field=field_names.EJSCREEN_AREAS_OF_CONCERN_NATIONAL_95TH_PERCENTILE_COMMUNITIES_FIELD,\n", - " other_census_tract_fields_to_keep=[],\n", " ),\n", "]\n", "\n", @@ -1326,7 +1301,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -1340,7 +1315,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.2" + "version": "3.9.6" } }, "nbformat": 4,