Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated to fix linting errors #1818

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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