|
47 | 47 | "incidence": ("incidence_prop", False),
|
48 | 48 | "cumulative_prop": ("cumulative_prop", False),
|
49 | 49 | }
|
| 50 | +# Temporarily added for wip_ signals |
| 51 | +# WIP_SENSOR_NAME_MAP = { |
| 52 | +# "new_counts": ("incid_num", False), |
| 53 | +# "cumulative_counts": ("cumul_num", False), |
| 54 | +# "incidence": ("incid_prop", False), |
| 55 | +# "cumulative_prop": ("cumul_prop", False), |
| 56 | +# } |
50 | 57 | SMOOTHERS_MAP = {
|
51 | 58 | "unsmoothed": (identity, ''),
|
52 | 59 | "seven_day_average": (seven_day_moving_average, '7dav_'),
|
@@ -92,8 +99,9 @@ def run_module():
|
92 | 99 | # Drop early entries where data insufficient for smoothing
|
93 | 100 | df = df.loc[~df["val"].isnull(), :]
|
94 | 101 | sensor_name = SENSOR_NAME_MAP[sensor][0]
|
95 |
| - if SENSOR_NAME_MAP[sensor][1]: |
96 |
| - metric = f"wip_{metric}" |
| 102 | + # if (SENSOR_NAME_MAP[sensor][1] or SMOOTHERS_MAP[smoother][2]): |
| 103 | + # metric = f"wip_{metric}" |
| 104 | + # sensor_name = WIP_SENSOR_NAME_MAP[sensor][0] |
97 | 105 | sensor_name = SMOOTHERS_MAP[smoother][1] + sensor_name
|
98 | 106 | create_export_csv(
|
99 | 107 | df,
|
|
0 commit comments