Skip to content

Commit df58333

Browse files
committed
updator -> updater
1 parent d688ea6 commit df58333

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

changehc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ should not include critical sub-routines.
7373

7474
## Code tour
7575

76-
- update_sensor.py: CHCSensorUpdator: reads the data, makes transformations, writes results to file
76+
- update_sensor.py: CHCSensorUpdater: reads the data, makes transformations, writes results to file
7777
- sensor.py: CHCSensor: methods for transforming data, including backfill and smoothing
7878
- smooth.py: implements local linear left Gaussian filter
7979
- load_data.py: methods for loading denominator and covid data

changehc/delphi_changehc/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# first party
1717
from .download_ftp_files import download_covid, download_cli
1818
from .load_data import load_combined_data, load_cli_data
19-
from .update_sensor import CHCSensorUpdator
19+
from .update_sensor import CHCSensorUpdater
2020

2121

2222
def retrieve_files(params, filedate, logger):
@@ -164,7 +164,7 @@ def run_module(params: Dict[str, Dict[str, Any]]):
164164
logger.info("starting weekday adj", geo = geo, numtype = numtype)
165165
else:
166166
logger.info("starting no adj", geo = geo, numtype = numtype)
167-
su_inst = CHCSensorUpdator(
167+
su_inst = CHCSensorUpdater(
168168
startdate,
169169
enddate,
170170
dropdate,

changehc/delphi_changehc/update_sensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def write_to_csv(df, geo_level, write_se, day_shift, out_name, output_path=".",
7171
return dates
7272

7373

74-
class CHCSensorUpdator: # pylint: disable=too-many-instance-attributes
74+
class CHCSensorUpdater: # pylint: disable=too-many-instance-attributes
7575
"""Contains methods to update sensor and write results to csv."""
7676

7777
def __init__(self,
@@ -84,7 +84,7 @@ def __init__(self,
8484
numtype,
8585
se,
8686
wip_signal):
87-
"""Init Sensor Updator.
87+
"""Init Sensor Updater.
8888
8989
Args:
9090
startdate: first sensor date (YYYY-mm-dd)

changehc/tests/test_update_sensor.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
# first party
1515
from delphi_changehc.config import Config
16-
from delphi_changehc.update_sensor import write_to_csv, CHCSensorUpdator
16+
from delphi_changehc.update_sensor import write_to_csv, CHCSensorUpdater
1717

1818
CONFIG = Config()
1919
PARAMS = {
@@ -28,7 +28,7 @@
2828
DROP_DATE = pd.to_datetime(PARAMS["indicator"]["drop_date"])
2929
OUTPATH="test_data/"
3030

31-
class TestCHCSensorUpdator:
31+
class TestCHCSensorUpdater:
3232
"""Tests for updating the sensors."""
3333
geo = "county"
3434
parallel = False
@@ -44,7 +44,7 @@ class TestCHCSensorUpdator:
4444

4545
def test_shift_dates(self):
4646
"""Tests that dates in the data are shifted according to the burn-in and lag."""
47-
su_inst = CHCSensorUpdator(
47+
su_inst = CHCSensorUpdater(
4848
"02-01-2020",
4949
"06-01-2020",
5050
"06-12-2020",
@@ -68,7 +68,7 @@ def test_shift_dates(self):
6868
def test_geo_reindex(self):
6969
"""Tests that the geo reindexer changes the geographic resolution."""
7070
for geo, multiple in [("nation", 1), ("county", 2), ("hhs", 2)]:
71-
su_inst = CHCSensorUpdator(
71+
su_inst = CHCSensorUpdater(
7272
"02-01-2020",
7373
"06-01-2020",
7474
"06-12-2020",
@@ -94,7 +94,7 @@ def test_update_sensor(self):
9494
outputs = {}
9595
for geo in ["county", "state", "hhs", "nation"]:
9696
td = TemporaryDirectory()
97-
su_inst = CHCSensorUpdator(
97+
su_inst = CHCSensorUpdater(
9898
"03-01-2020",
9999
"03-22-2020",
100100
"03-27-2020",

0 commit comments

Comments
 (0)