Skip to content

Commit 50f9e95

Browse files
Jingjing TangJingjing Tang
Jingjing Tang
authored and
Jingjing Tang
committed
change naming for wip signal
1 parent b67269b commit 50f9e95

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

jhu/delphi_jhu/run.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@
4343
"incidence": ("incidence_prop", False),
4444
"cumulative_prop": ("cumulative_prop", False),
4545
}
46+
# Temporarily added for wip_ signals
47+
WIP_SENSOR_NAME_MAP = {
48+
"new_counts": ("incid_num", False),
49+
"cumulative_counts": ("cumul_num", False),
50+
"incidence": ("incid_prop", False),
51+
"cumulative_prop": ("cumul_prop", False),
52+
}
4653
SMOOTHERS_MAP = {
4754
"unsmoothed": (identity, '', False),
4855
"seven_day_average": (seven_day_moving_average, '7dav_', True),
@@ -86,6 +93,7 @@ def run_module():
8693
sensor_name = SENSOR_NAME_MAP[sensor][0]
8794
if (SENSOR_NAME_MAP[sensor][1] or SMOOTHERS_MAP[smoother][2]):
8895
metric = f"wip_{metric}"
96+
sensor_name = WIP_SENSOR_NAME_MAP[sensor][0]
8997
sensor_name = SMOOTHERS_MAP[smoother][1] + sensor_name
9098
create_export_csv(
9199
df,

0 commit comments

Comments
 (0)