Skip to content

Commit 685348e

Browse files
committed
revert 7day smooth to wip_
1 parent 3ffc074 commit 685348e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jhu/delphi_jhu/run.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"cumulative_prop": ("cumulative_prop", False),
4545
}
4646
SMOOTHERS_MAP = {
47-
"unsmoothed": (identity, ''),
48-
"seven_day_average": (seven_day_moving_average, '7day_avg_'),
47+
"unsmoothed": (identity, '', False),
48+
"seven_day_average": (seven_day_moving_average, '7day_avg_', True),
4949
}
5050
GEO_RESOLUTIONS = [
5151
"county",
@@ -84,7 +84,7 @@ def run_module():
8484
# Drop early entries where data insufficient for smoothing
8585
df = df.loc[~df["val"].isnull(), :]
8686
sensor_name = SENSOR_NAME_MAP[sensor][0]
87-
if SENSOR_NAME_MAP[sensor][1]:
87+
if (SENSOR_NAME_MAP[sensor][1] or SMOOTHERS_MAP[smoother][2]):
8888
metric = f"wip_{metric}"
8989
sensor_name = SMOOTHERS_MAP[smoother][1] + sensor_name
9090
create_export_csv(

0 commit comments

Comments
 (0)