Skip to content

Commit 270c168

Browse files
authored
Merge pull request #1419 from cmu-delphi/claims_hosp/remove_day_shift
Remove artificial day shift in labeling
2 parents f3bff62 + 5c3be68 commit 270c168

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

claims_hosp/delphi_claims_hosp/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Author: Maria Jahja
55
Created: 2020-06-01
6-
Modified: 2020-09-27
6+
Modified: 2021-12-11
77
88
"""
99

@@ -26,8 +26,8 @@ class Config:
2626
# (one day needed for smoother to produce values)
2727
BURN_IN_PERIOD = timedelta(days=1)
2828

29-
# shift dates forward for labeling purposes
30-
DAY_SHIFT = timedelta(days=1)
29+
# if desired, shift dates forward for labeling purposes
30+
DAY_SHIFT = timedelta(days=0)
3131

3232
# data columns
3333
CLAIMS_COUNT_COLS = ["Denominator", "Covid_like"]

claims_hosp/tests/test_update_indicator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def test_write_to_csv_results(self):
141141
updater.write_to_csv(res0, td.name)
142142

143143
# check outputs
144-
expected_name = f"20200502_geography_{Config.signal_name}.csv"
144+
expected_name = f"20200501_geography_{Config.signal_name}.csv"
145145
assert exists(join(td.name, expected_name))
146146
output_data = pd.read_csv(join(td.name, expected_name))
147147
assert (
@@ -155,7 +155,7 @@ def test_write_to_csv_results(self):
155155
assert np.isnan(output_data.direction.values).all()
156156
assert np.isnan(output_data.sample_size.values).all()
157157

158-
expected_name = f"20200503_geography_{Config.signal_name}.csv"
158+
expected_name = f"20200502_geography_{Config.signal_name}.csv"
159159
assert exists(join(td.name, expected_name))
160160
output_data = pd.read_csv(join(td.name, expected_name))
161161
assert (
@@ -167,7 +167,7 @@ def test_write_to_csv_results(self):
167167
assert np.isnan(output_data.direction.values).all()
168168
assert np.isnan(output_data.sample_size.values).all()
169169

170-
expected_name = f"20200505_geography_{Config.signal_name}.csv"
170+
expected_name = f"20200504_geography_{Config.signal_name}.csv"
171171
assert exists(join(td.name, expected_name))
172172
output_data = pd.read_csv(join(td.name, expected_name))
173173
assert (
@@ -221,7 +221,7 @@ def test_write_to_csv_with_se_results(self):
221221
updater.write_to_csv(res0, td.name)
222222

223223
# check outputs
224-
expected_name = f"20200502_geography_{signal_name}.csv"
224+
expected_name = f"20200501_geography_{signal_name}.csv"
225225
assert exists(join(td.name, expected_name))
226226
output_data = pd.read_csv(join(td.name, expected_name))
227227
assert (

0 commit comments

Comments
 (0)