Skip to content

Commit

Permalink
updated to fix linting errors (#1818)
Browse files Browse the repository at this point in the history
Cleans and updates base branch
  • Loading branch information
emma-nechamkin authored Aug 11, 2022
1 parent dcda155 commit 481a2a0
Show file tree
Hide file tree
Showing 15 changed files with 271 additions and 942 deletions.
6 changes: 3 additions & 3 deletions data/data-pipeline/data_pipeline/etl/score/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,10 @@
# These are the booleans for socioeconomic indicators
## this measures low income boolean
field_names.FPL_200_SERIES: "FPL200S",
## Low high school and low higher ed for t&wd
## Low high school for t&wd
field_names.WORKFORCE_SOCIO_INDICATORS_EXCEEDED: "M_WKFC_EBSI",
## FPL 200 and low higher ed for all others
field_names.FPL_200_SERIES: "M_EBSI",
## FPL 200 and low higher ed for all others should no longer be M_EBSI, but rather
## FPL_200 (there is no higher ed in narwhal)
}

# columns to round floats to 2 decimals
Expand Down
1 change: 0 additions & 1 deletion data/data-pipeline/data_pipeline/etl/score/etl_score.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import functools
from collections import namedtuple
from attr import field

import numpy as np
import pandas as pd
Expand Down
3 changes: 1 addition & 2 deletions data/data-pipeline/data_pipeline/etl/score/etl_score_geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def create_esri_codebook(codebook):
shapefile_column_field = "shapefile_column"
internal_column_name_field = "column_name"
column_description_field = "column_description"

logger.info("Creating a codebook that uses the csv names")
codebook = (
pd.Series(codebook)
Expand All @@ -299,7 +299,6 @@ def create_esri_codebook(codebook):
0: internal_column_name_field,
"index": shapefile_column_field,
}

)
)

Expand Down

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ def __init__(self):

self.df: pd.DataFrame

# pylint: disable=too-many-arguments
def _merge_geojson(
self,
df: pd.DataFrame,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from typing import List, NamedTuple
import pandas as pd
import geopandas as gpd
import numpy as np

from data_pipeline.utils import get_module_logger

# pylint: disable=unsubscriptable-object

logger = get_module_logger(__name__)


Expand Down
1 change: 0 additions & 1 deletion data/data-pipeline/data_pipeline/score/score_narwhal.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from typing import Tuple
from attr import field
import numpy as np
import pandas as pd

Expand Down
2 changes: 0 additions & 2 deletions data/data-pipeline/data_pipeline/score/score_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from data_pipeline.score.score_a import ScoreA
from data_pipeline.score.score_b import ScoreB
from data_pipeline.score.score_c import ScoreC
from data_pipeline.score.score_d import ScoreD
from data_pipeline.score.score_f import ScoreF
from data_pipeline.score.score_g import ScoreG
from data_pipeline.score.score_h import ScoreH
Expand All @@ -11,7 +10,6 @@
from data_pipeline.score.score_l import ScoreL
from data_pipeline.score.score_m import ScoreM
from data_pipeline.score.score_narwhal import ScoreNarwhal
from data_pipeline.score import field_names

from data_pipeline.utils import get_module_logger

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=protected-access,unsubscriptable-object
# pylint: disable=protected-access, unsubscriptable-object, unnecessary-dunder-call
import copy
import os
import pathlib
Expand Down
Loading

0 comments on commit 481a2a0

Please sign in to comment.