Skip to content

Commit 2973229

Browse files
make suppression condition more robust
Co-authored-by: Alex Reinhart <areinhar@stat.cmu.edu>
1 parent ab44ee2 commit 2973229

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

facebook/delphiFacebook/R/aggregate.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ summarize_indicators_day <- function(day_df, indicators, target_day, geo_level,
182182
# Prevent smoothed weighted signals from being reported for dates after
183183
# the latest available weight data.
184184
if (target_day > params$latest_weight_date &&
185-
indicators$smooth_days[row] == 6 &&
186-
indicators$var_weight[row] == "weight") {
185+
indicators$smooth_days[row] > 1 &&
186+
indicators$var_weight[row] != "weight_unif") {
187187

188188
next
189189
}

0 commit comments

Comments
 (0)