From ad1ce2bf7f8dcbf0829ee50a8fff64567846884c Mon Sep 17 00:00:00 2001 From: Emma Nechamkin <97977170+emma-nechamkin@users.noreply.github.com> Date: Fri, 19 Aug 2022 14:43:46 -0400 Subject: [PATCH] Tiles fix (#1845) Fixes score-geo and adds flags --- .../data_pipeline/etl/score/etl_score_geo.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/data/data-pipeline/data_pipeline/etl/score/etl_score_geo.py b/data/data-pipeline/data_pipeline/etl/score/etl_score_geo.py index a4b5685e..0e3eb84a 100644 --- a/data/data-pipeline/data_pipeline/etl/score/etl_score_geo.py +++ b/data/data-pipeline/data_pipeline/etl/score/etl_score_geo.py @@ -46,12 +46,13 @@ class GeoScoreETL(ExtractTransformLoad): self.DATA_PATH / "census" / "geojson" / "us.json" ) - # Import the shortened name for Score N percentile ("SM_PFS") that's used on the - # tiles. - ## TEMPORARY update + # Import the shortened name for Score N to be used on tiles. + # We should no longer be using PFS + + ## TODO: We really should not have this any longer changing self.TARGET_SCORE_SHORT_FIELD = constants.TILES_SCORE_COLUMNS[ - field_names.SCORE_N + field_names.PERCENTILE_FIELD_SUFFIX - ] + field_names.SCORE_N + ].astype(float) self.TARGET_SCORE_RENAME_TO = "M_SCORE" # Import the shortened name for tract ("GTF") that's used on the tiles.