Skip to content

Commit d0db106

Browse files
committed
Fix linting
1 parent 604d11b commit d0db106

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

changehc/delphi_changehc/download_ftp_files.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,3 @@ def download_cli(out_path, ftp_conn):
109109
finally:
110110
if client:
111111
client.close()
112-

changehc/delphi_changehc/load_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def load_chng_data(filepath, dropdate, base_geo,
4040
elif n == "fips":
4141
geo_flag = True
4242
assert count_flag, "counts_col must be present in col_names"
43-
assert date_flag, "'%s' must be present in col_names"%(CONFIG.DATE_COL)
43+
assert date_flag, "'%s' must be present in col_names"%(Config.DATE_COL)
4444
assert geo_flag, "'fips' must be present in col_names"
4545

4646
data = pd.read_csv(

changehc/delphi_changehc/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from .update_sensor import CHCSensorUpdator
2020

2121

22-
def run_module():
22+
def run_module(): # pylint: disable=too-many-branches,too-many-statements
2323
"""Run the delphi_changehc module.
2424
"""
2525

changehc/delphi_changehc/update_sensor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# first party
1616
from .config import Config, Constants
17-
from .constants import *
17+
from .constants import SMOOTHED, SMOOTHED_ADJ, SMOOTHED_CLI, SMOOTHED_ADJ_CLI, NA
1818
from .sensor import CHCSensor
1919
from .weekday import Weekday
2020

@@ -187,8 +187,6 @@ def update_sensor(self,
187187
(self.burn_in_dates <= self.enddate)
188188

189189
# load data
190-
base_geo = "fips"
191-
192190
data.reset_index(inplace=True)
193191
data_frame = self.geo_reindex(data)
194192
# handle if we need to adjust by weekday

0 commit comments

Comments
 (0)