File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 44
44
"cumulative_prop" : ("cumulative_prop" , False ),
45
45
}
46
46
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 ),
49
49
}
50
50
GEO_RESOLUTIONS = [
51
51
"county" ,
@@ -84,7 +84,7 @@ def run_module():
84
84
# Drop early entries where data insufficient for smoothing
85
85
df = df .loc [~ df ["val" ].isnull (), :]
86
86
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 ]) :
88
88
metric = f"wip_{ metric } "
89
89
sensor_name = SMOOTHERS_MAP [smoother ][1 ] + sensor_name
90
90
create_export_csv (
You can’t perform that action at this time.
0 commit comments